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-1.1.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-1.1.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-1.0.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-1.0.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.13.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.13.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.12.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.12.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.11.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.11.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.10.0 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.10.0 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.9.4 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.9.4 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.9.3 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.9.3 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.9.2 lib/fog/aws/parsers/compute/describe_tags.rb
fog-aws-0.9.2 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.9.1 lib/fog/aws/parsers/elb/describe_tags.rb
fog-aws-0.9.1 lib/fog/aws/parsers/compute/describe_tags.rb