Sha256: 6afd48cd26ab4fe781a8bc5c0689ecc2952931f3bb31c38402c0c7dcb45df508

Contents?: true

Size: 819 Bytes

Versions: 67

Compression:

Stored size: 819 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

67 entries across 67 versions & 4 rubygems

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