Class: CPEE::Frames::GetInfo

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee-frames/implementation.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



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