Class: Fog::Parsers::XenServer::GetStorageRepositories

Inherits:
Base
  • Object
show all
Defined in:
lib/rackspace-fog/xenserver/parsers/get_storage_repositories.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



10
11
12
13
# File 'lib/rackspace-fog/xenserver/parsers/get_storage_repositories.rb', line 10

def parse( data )
  parser = Fog::Parsers::XenServer::Base.new
  data.each_pair {|reference, sr_hash| @response << parser.parse( sr_hash ).merge(:reference => reference) }
end

#resetObject



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

def reset
  @response = []
end