Class: Fog::Parsers::XenServer::GetVms

Inherits:
Base
  • Object
show all
Defined in:
lib/rackspace-fog/xenserver/parsers/get_vms.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Fog::Parsers::XenServer::Base

Instance Method Details

#parse(data) ⇒ Object



11
12
13
14
# File 'lib/rackspace-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

#resetObject



7
8
9
# File 'lib/rackspace-fog/xenserver/parsers/get_vms.rb', line 7

def reset
  @response = []
end