Class: CPEE::Properties::GetItems
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Properties::GetItems
- Defined in:
- lib/cpee/implementation_properties.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
348 349 350 351 352 353 354 355 356 357 |
# File 'lib/cpee/implementation_properties.rb', line 348 def response item = @a[0] id = @a[1] opts = @a[2] 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:#{item}").first CPEE::Persistence::extract_list(id,opts,item).each{ |de| des.add(*de) } Riddl::Parameter::Complex.new(item,'text/xml',des.to_doc.to_s) end |