class CPEE::Properties::GetStatus

Public Instance Methods

response() click to toggle source
# File lib/cpee/implementation_properties.rb, line 277
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