Sha256: a985a44996d7d32f3870f28f7da3d369b62ba842b2bec2f332cba0f01077743c

Contents?: true

Size: 600 Bytes

Versions: 2

Compression:

Stored size: 600 Bytes

Contents

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

module Fog
  module Parsers
    module AWS
      module SimpleDB

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

          def reset
            @response = { 'Domains' => [] }
          end

          def end_element(name)
            case(name)
            when 'BoxUsage'
              response[name] = value.to_f
            when 'DomainName'
              response['Domains'] << value
            when 'NextToken', 'RequestId'
              response[name] = value
            end
          end

        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/parsers/simpledb/list_domains.rb
fog-1.21.0 lib/fog/aws/parsers/simpledb/list_domains.rb