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
{{{
140 141 142 143 144 145 146 147 148 149 |
# File 'lib/cpee/implementation.rb', line 140 def response controller = @a[0] Riddl::Parameter::Complex.new("wis","text/xml") do ins = XML::Smart::string('<instances/>') controller.sort{|a,b| b[0] <=> a[0] }.each do |k,v| ins.root.add('instance', v.info, 'uuid' => v.uuid, 'id' => k, 'state' => v.state, 'state_changed' => v.state_changed ) unless v.nil? end ins.to_s end end |