lib/fog/terremark/parsers/shared/get_organizations.rb in fog-maestrodev-1.8.0.20130114204828 vs lib/fog/terremark/parsers/shared/get_organizations.rb in fog-maestrodev-1.14.0.20130806165225
- old
+ new
@@ -1,19 +1,20 @@
module Fog
module Parsers
module Terremark
module Shared
- class GetOrganizations < Fog::Parsers::Base
+ class GetOrganizations < TerremarkParser
+ # include Fog::Terremark::Shared::Parser
def reset
@response = { 'OrgList' => [] }
end
def start_element(name, attributes)
super
if name == 'Org'
- organization = {}
+ organization = extract_attributes(attributes)
until attributes.empty?
if attributes.first.is_a?(Array)
attribute = attributes.shift
organization[attribute.first] = attribute.last
else