Sha256: 67e7f9489752eecf899676ca3ea7eb0b1d74daaa17b4df1437862aec8c0781ed

Contents?: true

Size: 518 Bytes

Versions: 35

Compression:

Stored size: 518 Bytes

Contents

module Fog
  module Parsers
    module Terremark

      class GetOrganizations < Fog::Parsers::Base

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

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

      end

    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fog-0.0.77 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.76 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.75 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.74 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.73 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.72 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.71 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.70 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.69 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.68 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.67 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.66 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.65 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.64 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.63 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.62 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.61 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.60 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.59 lib/fog/terremark/parsers/get_organizations.rb
fog-0.0.58 lib/fog/terremark/parsers/get_organizations.rb