Sha256: 138c8ddc914a7148899118ac9db4485118a9af9ed6f6b59965333da38e21d286

Contents?: true

Size: 588 Bytes

Versions: 145

Compression:

Stored size: 588 Bytes

Contents

module Fog
  module Parsers
    module Compute
      module AWS
        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

145 entries across 95 versions & 6 rubygems

Version Path
fog-aws-3.29.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.28.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.27.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.26.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.25.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.24.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.23.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.22.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.21.1 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.21.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.20.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.19.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.18.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.17.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.16.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.15.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.14.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.13.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.12.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-3.11.0 lib/fog/aws/parsers/elb/describe_tags.rb