Sha256: 71c997652cd454a4d48e3814f3f69b7c3c90217e4dc7a198a5478e1c1f40e4ce

Contents?: true

Size: 594 Bytes

Versions: 42

Compression:

Stored size: 594 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Compute

        class DescribeTags < Fog::Parsers::Base

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

          def end_element(name)
            case name
            when 'resourceId', 'resourceType', 'key', 'value'
              @tag[name] = @value
            when 'item'
              @response['tagSet'] << @tag
              @tag = {}
            when 'requestId'
              @response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

42 entries across 42 versions & 3 rubygems

Version Path
fog-0.7.2 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.7.1 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.7.0 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.6.0 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.5.3 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.5.2 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.5.1 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.5.0 lib/fog/compute/parsers/aws/describe_tags.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/aws/describe_tags.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/aws/describe_tags.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/aws/describe_tags.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.4.1 lib/fog/compute/parsers/aws/describe_tags.rb
fog-0.4.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-0.3.34 lib/fog/aws/parsers/compute/describe_tags.rb
fog-0.3.33 lib/fog/aws/parsers/compute/describe_tags.rb
fog-0.3.32 lib/fog/aws/parsers/compute/describe_tags.rb
fog-0.3.31 lib/fog/aws/parsers/compute/describe_tags.rb
fog-0.3.30 lib/fog/aws/parsers/compute/describe_tags.rb
fog-0.3.29 lib/fog/aws/parsers/compute/describe_tags.rb