Sha256: 986f5bf4ef75ec7642d89cf29ba5ab983bc8df86dc4d9bd89cc04f730736664d

Contents?: true

Size: 577 Bytes

Versions: 9

Compression:

Stored size: 577 Bytes

Contents

module Fog
  module Parsers
    module TerremarkEcloud
      module Compute

        class Login < Fog::Parsers::Base

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

          def start_element(name, attrs = [])
            case name
            when 'Org'
              @response['OrgList'] << {
                'href'  => attr_value('href', attrs),
                'name'  => attr_value('name', attrs),
                'type'  => attr_value('type', attrs)
              }
            end
          end

        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fog-0.5.3 lib/fog/compute/parsers/terremark_ecloud/login.rb
fog-0.5.2 lib/fog/compute/parsers/terremark_ecloud/login.rb
fog-0.5.1 lib/fog/compute/parsers/terremark_ecloud/login.rb
fog-0.5.0 lib/fog/compute/parsers/terremark_ecloud/login.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/terremark_ecloud/login.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/terremark_ecloud/login.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/terremark_ecloud/login.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/terremark_ecloud/login.rb
fog-0.4.1 lib/fog/compute/parsers/terremark_ecloud/login.rb