Class: CPEE::Frames::GetCpeeInstance

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



361
362
363
364
365
366
367
368
# File 'lib/cpee-frames/implementation.rb', line 361

def response
  fname = File.join('data',@r[-2],'cpeeinstance.url')
  if File.exists? fname
    Riddl::Parameter::Complex.new('url','text/plain',File.read(fname).strip)
  else
    @status = 404
  end
end