Class: CPEE::Info

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/cpee/implementation.rb', line 208

def response
  controller = @a[0]
  id = @r[0].to_i
  unless controller[id]
    @status = 400
    return
  end
  Riddl::Parameter::Complex.new("info","text/xml") do
    i = XML::Smart::string "      <info instance='\#{@r[0]}'>\n        <notifications/>\n        <properties/>\n        <callbacks/>\n      </info>\n    END\n    i.to_s\n  end\nend\n"