Sha256: 2f9ef956bd7db142eea13c6cb340271c8ad0da12f8d42329e64980d6fdd9504c

Contents?: true

Size: 785 Bytes

Versions: 16

Compression:

Stored size: 785 Bytes

Contents

module Fog
  module Parsers
    module Vcloud

      class GetOrganization < Fog::Parsers::Vcloud::Base
        #
        # Based off of:
        # http://support.theenterprisecloud.com/kb/default.asp?id=540&Lang=1&SID=
        # 
        # vCloud API Guide v0.9 - Page 26
        #

        def reset
          @response = Struct::VcloudOrganization.new([])
        end

        def start_element(name, attributes)
          @value = ''
          case name
          when 'Link'
            @response.links << generate_link(attributes)
          when 'Org'
            handle_root(attributes)
          end
        end

        def end_element(name)
          if name == 'Description'
            @response.description = @value
          end
        end

      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.1.8 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.7 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.6 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.5 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.4 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.3 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.2 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.1 lib/fog/vcloud/parsers/get_organization.rb
fog-0.1.0 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.100 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.99 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.98 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.97 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.96 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.95 lib/fog/vcloud/parsers/get_organization.rb
fog-0.0.94 lib/fog/vcloud/parsers/get_organization.rb