Class: CPEE::Frames::GetCpeeInstance
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Frames::GetCpeeInstance
- Defined in:
- lib/cpee-frames/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
366 367 368 369 370 371 372 373 374 |
# File 'lib/cpee-frames/implementation.rb', line 366 def response data_dir = @a[0] fname = File.join(data_dir,@r[-2],'cpeeinstance.url') if File.exist? fname Riddl::Parameter::Complex.new('url','text/plain',File.read(fname).strip) else @status = 404 end end |