Class: Fog::Parsers::Vcloud::GetVdc
- Defined in:
- lib/fog/vcloud/parsers/get_vdc.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #end_element(name) ⇒ Object
-
#reset ⇒ Object
WARNING: Incomplete Based off of: vCloud API Guide v0.9 - Page 27.
- #start_element(name, attributes) ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from Fog::Parsers::Base
Instance Method Details
#end_element(name) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/fog/vcloud/parsers/get_vdc.rb', line 24 def end_element(name) case name when "AllocationModel" @response.allocation_model = @value when "Description" @response.description = @value end end |
#reset ⇒ Object
WARNING: Incomplete Based off of: vCloud API Guide v0.9 - Page 27
10 11 12 |
# File 'lib/fog/vcloud/parsers/get_vdc.rb', line 10 def reset @response = Struct::VcloudVdc.new([]) end |
#start_element(name, attributes) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/vcloud/parsers/get_vdc.rb', line 14 def start_element(name, attributes) @value = '' case name when 'Link' @response.links << generate_link(attributes) when 'Vdc' handle_root(attributes) end end |