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

{{{



68
69
70
71
72
73
74
75
76
77
78
# File 'lib/cpee-frames/implementation.rb', line 68

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