Class: Fog::Parsers::Terremark::Base
- Inherits:
-
Base
- Object
- Base
- Fog::Parsers::Terremark::Base
- Defined in:
- lib/fog/parsers/terremark/base.rb
Direct Known Subclasses
GetCatalog, GetCatalogItem, GetInternetServices, GetKeysList, GetNetworkIps, GetNodeServices, GetOrganization, GetOrganizations, GetPublicIps, GetTasksList, GetVappTemplate, GetVdc, InstantiateVappTemplate, InternetService, Network, NodeService, PublicIp, Task, Vapp
Instance Method Summary collapse
Instance Method Details
#extract_attributes(attributes_xml) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fog/parsers/terremark/base.rb', line 5 def extract_attributes(attributes_xml) attributes = {} until attributes_xml.empty? if attributes_xml.first.is_a?(Array) until attributes_xml.first.empty? attribute = attributes_xml.first.shift attributes[attribute.localname] = attribute.value end else attribute = attributes_xml.shift attributes[attribute.localname] = attribute.value end end attributes end |