Sha256: ff41bd500057b10ff020967cc3f7715efe39e0d1baddecc29d1cb81e42251e5c

Contents?: true

Size: 571 Bytes

Versions: 84

Compression:

Stored size: 571 Bytes

Contents

module Fog
  module Parsers
    module Terremark
      module Shared

        class GetOrganizations < Fog::Parsers::Base

          def reset
            @response = { 'OrgList' => [] }
          end

          def start_element(name, attributes)
            super
            if name == 'Org'
              organization = {}
              until attributes.empty?
                organization[attributes.shift] = attributes.shift
              end
              @response['OrgList'] << organization
            end
          end

        end
      end
    end
  end
end

Version data entries

84 entries across 84 versions & 3 rubygems

Version Path
fog-0.3.29 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.28 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.27 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.26 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.25 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.24 lib/fog/terremark/parsers/shared/get_organizations.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.23 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.22 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.21 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.20 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.19 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.18 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.17 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.16 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.15 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.14 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.13 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.12 lib/fog/terremark/parsers/shared/get_organizations.rb
fog-0.3.11 lib/fog/terremark/parsers/shared/get_organizations.rb