Sha256: 9a7eb91cc520b634014aac43709212c4ca3b3c684b9b8c7ea6f427e32413f038

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

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

module Fog
  module Parsers
    module AWS
      module SimpleDB

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

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'AttributeNameCount', 'AttributeNamesSizeBytes', 'AttributeValueCount', 'AttributeValuesSizeBytes', 'ItemCount', 'ItemNamesSizeBytes'
              response[name] = value.to_i
            when 'BoxUsage'
              response[name] = value.to_f
            when 'RequestId'
              response[name] = value
            when 'Timestamp'
              response[name] = Time.at(value.to_i)
            end
          end

        end
        
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/parsers/simpledb/domain_metadata.rb