Class: CPEE::Frames::GetLangs
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Frames::GetLangs
- Defined in:
- lib/cpee-frames/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
323 324 325 326 327 328 329 330 331 332 |
# File 'lib/cpee-frames/implementation.rb', line 323 def response data_dir = @a[0] fname = File.join(data_dir,@r[-2],'info.json') if File.exists? fname infojson = JSON::parse(File.read(fname)) Riddl::Parameter::Complex.new('value','application/json',infojson["langs"]) else @status = 404 end end |