Class: Fog::Parsers::Vcloud::GetVersions
- Defined in:
- lib/fog/vcloud/parsers/get_versions.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #end_element(name) ⇒ Object
-
#reset ⇒ Object
Based off of: support.theenterprisecloud.com/kb/default.asp?id=535&Lang=1&SID= community.vcloudexpress.terremark.com/en-us/product_docs/w/wiki/02-get-versions.aspx vCloud API Guide v0.9 - Page 89.
- #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
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/fog/vcloud/parsers/get_versions.rb', line 28 def end_element(name) case name when "Version" @version.version = @value @version.supported = @supported when "LoginUrl" @version.login_url = @value when "VersionInfo" @response << @version when "SupportedVersions" @supported = false end end |
#reset ⇒ Object
Based off of: support.theenterprisecloud.com/kb/default.asp?id=535&Lang=1&SID= community.vcloudexpress.terremark.com/en-us/product_docs/w/wiki/02-get-versions.aspx vCloud API Guide v0.9 - Page 89
13 14 15 16 |
# File 'lib/fog/vcloud/parsers/get_versions.rb', line 13 def reset @response = [] @supported = false end |
#start_element(name, attributes = {}) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/fog/vcloud/parsers/get_versions.rb', line 18 def start_element(name, attributes = {}) @value = '' case name when "Version" @version = Struct::VcloudVersion.new when "SupportedVersions" @supported = true end end |