Class: CPEE::Frames::GetAllConfigs
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Frames::GetAllConfigs
- Defined in:
- lib/cpee-frames/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
60 61 62 63 64 |
# File 'lib/cpee-frames/implementation.rb', line 60 def response data_dir = @a[0] databack = JSON::pretty_generate(Dir.glob(File.join(data_dir,'*')).map{|f| File.basename(f)}.sort_by{|x| x.downcase}) Riddl::Parameter::Complex.new('list','application/json',databack) end |