Class: CPEE::Frames::Get

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



57
58
59
60
61
62
63
64
65
66
67
# File 'lib/cpee-frames/implementation.rb', line 57

def response
  if @r[0] == 'test'
    Riddl::Parameter::Complex.new('ui','text/html',File.open(File.join(__dir__,'ui','test.html')))
  elsif @r[0] == 'menu'
    Riddl::Parameter::Complex.new('ui','text/html',File.open(File.join(__dir__,'ui','menu.html')))
  elsif @r[0] == 'framedata'
    Riddl::Parameter::Complex.new('ui','text/html',File.open(File.join(__dir__,'ui','framedata.html')))
  else
    Riddl::Parameter::Complex.new('ui','text/html',File.open(File.join(__dir__,'ui','template.html')))
  end
end