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