Class: CPEE::Frames::GetInfo
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Frames::GetInfo
- Defined in:
- lib/cpee-frames/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
303 304 305 306 307 308 309 310 311 |
# File 'lib/cpee-frames/implementation.rb', line 303 def response data_dir = @a[0] fname = File.join(data_dir,@r[-2],'info.json') if File.exist? fname Riddl::Parameter::Complex.new('value','application/json',File.read(fname)) else @status = 404 end end |