Class: Fog::Parsers::XenServer::GetVms
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::XenServer::GetVms
show all
- Defined in:
- lib/fog/xenserver/parsers/get_vms.rb
Instance Attribute Summary
Attributes inherited from Base
#response
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#parse(data) ⇒ Object
11
12
13
14
|
# File 'lib/fog/xenserver/parsers/get_vms.rb', line 11
def parse( data )
parser = Fog::Parsers::XenServer::Base.new
data.each_pair {|reference, vm_hash| @response << parser.parse( vm_hash ).merge(:reference => reference) }
end
|
#reset ⇒ Object
7
8
9
|
# File 'lib/fog/xenserver/parsers/get_vms.rb', line 7
def reset
@response = []
end
|