Class: CPEE::Frames::GetDataElements

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



291
292
293
294
295
296
297
298
# File 'lib/cpee-frames/implementation.rb', line 291

def response
  fname = File.join('data',@r[-2],'dataelements.json')
  if File.exists? fname
    Riddl::Parameter::Complex.new('value','application/json',File.read(fname))
  else
    @status = 404
  end
end