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