Class: CPEE::Info

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/cpee/implementation.rb', line 180

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