Class: Fog::Parsers::Vcloud::Login
- Defined in:
- lib/fog/vcloud/parsers/login.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#reset ⇒ Object
Based off of: support.theenterprisecloud.com/kb/default.asp?id=536&Lang=1&SID= community.vcloudexpress.terremark.com/en-us/product_docs/w/wiki/01-get-login-token.aspx vCloud API Guide v0.9 - Page 17.
- #start_element(name, attributes) ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from Fog::Parsers::Base
Instance Method Details
#reset ⇒ Object
Based off of: support.theenterprisecloud.com/kb/default.asp?id=536&Lang=1&SID= community.vcloudexpress.terremark.com/en-us/product_docs/w/wiki/01-get-login-token.aspx vCloud API Guide v0.9 - Page 17
13 14 15 |
# File 'lib/fog/vcloud/parsers/login.rb', line 13 def reset @response = Struct::VcloudOrgList.new([]) end |
#start_element(name, attributes) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fog/vcloud/parsers/login.rb', line 17 def start_element(name, attributes) @value = '' case name when 'OrgList' until attributes.empty? if at = attributes.shift if at[0] == "xmlns" @response.xmlns = at[1] end end end when 'Org' organization = Struct::VcloudOrgLink.new until attributes.empty? organization[attributes.shift.downcase.to_sym] = attributes.shift end @response.organizations << organization end end |