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
{{{
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/cpee/implementation.rb', line 327 def response opts = @a[0] id = @r[0].to_i unless CPEE::Persistence::exists?(id,opts) @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 |