Class: CPEE::Info

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'lib/cpee/implementation.rb', line 159

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 <<-END
      <info instance='#{@r[0]}'>
        <notifications/>
        <properties/>
        <callbacks/>
      </info>
    END
    i.to_s
  end
end