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
299
# File 'lib/cpee-frames/implementation.rb', line 291

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