Class: CPEE::Info
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Info
- Defined in:
- lib/cpee/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/cpee/implementation.rb', line 261 def response opts = @a[0] id = @r[0].to_i unless opts[:redis].exists?("instance:#{id}/state") @status = 404 return end Riddl::Parameter::Complex.new("info","text/xml") do i = XML::Smart::string <<-END <info instance='#{id}'> <notifications/> <properties/> <callbacks/> </info> END i.to_s end end |