Sha256: 8dc0642b42455de9b8a2e0cb31021c5f9f0009fb375846a0566f4fa54be6b747

Contents?: true

Size: 729 Bytes

Versions: 8

Compression:

Stored size: 729 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module SES

        class GetSendStatistics < Fog::Parsers::Base

          def reset
            @response = { 'SendDataPoints' => [], 'ResponseMetadata' => {} }
            @send_data_point = {}
          end

          def end_element(name)
            case name
            when "Bounces", "Complaints", "DeliveryAttempts", "Rejects", "Timestamp"
              @send_data_point[name] = @value
            when 'member'
              @response['SendDataPoints'] << @send_data_point
              @send_data_point = {}
            when 'RequestId'
              @response['ResponseMetadata'][name] = @value
            end
          end
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.7.2 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.7.1 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.7.0 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.6.0 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.5.3 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.5.2 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.5.1 lib/fog/aws/parsers/ses/get_send_statistics.rb
fog-0.5.0 lib/fog/aws/parsers/ses/get_send_statistics.rb