Sha256: 7e9e740ae177832199c9c804efbe9b52fbd354866d3ea6f66147f2492adfbc8d

Contents?: true

Size: 817 Bytes

Versions: 69

Compression:

Stored size: 817 Bytes

Contents

require 'fog/aws/parsers/simpledb/basic'

module Fog
  module Parsers
    module AWS
      module SimpleDB

        class GetAttributes < Fog::Parsers::AWS::SimpleDB::Basic

          def reset
            @attribute = nil
            @response = { 'Attributes' => {} }
          end

          def end_element(name)
            case name
            when 'Attribute'
              @attribute = nil
            when 'BoxUsage'
              response[name] = @value.to_f
            when 'Name'
              @attribute = @value
              response['Attributes'][@attribute] = []
            when 'RequestId'
              response[name] = @value
            when 'Value'
              response['Attributes'][@attribute] << sdb_decode(@value)
            end
          end

        end

      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
fog-0.2.13 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.12 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.11 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.10 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.9 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.8 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.7 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.6 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.5 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.4 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.3 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.2 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.1 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.2.0 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.1.10 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.1.9 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.1.8 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.1.7 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.1.6 lib/fog/aws/parsers/simpledb/get_attributes.rb
fog-0.1.5 lib/fog/aws/parsers/simpledb/get_attributes.rb