Class: Fog::Parsers::XenServer::GetVBDs

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



9
10
11
12
# File 'lib/fog/xenserver/parsers/get_vbds.rb', line 9

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

#resetObject



5
6
7
# File 'lib/fog/xenserver/parsers/get_vbds.rb', line 5

def reset
  @response = []
end