Class: CPEE::Instances
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Instances
- Defined in:
- lib/cpee/implementation.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/cpee/implementation.rb', line 137 def response controller = @a[0] Riddl::Parameter::Complex.new("wis","text/xml") do ins = XML::Smart::string('<instances/>') controller.each do |k,v| name = v.properties.data.find("string(/p:properties/p:attributes/p:info)") state = v.properties.data.find("string(/p:properties/p:state)") ins.root.add('instance',name, 'id' => k, 'state' => state) end ins.to_s end end |