Class: CPEE::Properties::GetStatus
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Properties::GetStatus
- Defined in:
- lib/cpee/implementation_properties.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
281 282 283 284 285 286 287 288 289 290 |
# File 'lib/cpee/implementation_properties.rb', line 281 def response id = @a[0] opts = @a[1] doc = XML::Smart::open_unprotected(opts[:properties_empty]) doc.register_namespace 'p', 'http://cpee.org/ns/properties/2.0' des = doc.find('/p:properties/p:status').first des.find('p:id').first.text = CPEE::Persistence::extract_item(id,opts,'status/id') des.find('p:message').first.text = CPEE::Persistence::extract_item(id,opts,'status/message') Riddl::Parameter::Complex.new('status','text/xml',des.to_doc.to_s) end |