2011-01-25 13:20:33 -05:00
|
|
|
module Fog
|
|
|
|
module Parsers
|
|
|
|
module AWS
|
|
|
|
module SES
|
|
|
|
|
|
|
|
class GetSendStatistics < Fog::Parsers::Base
|
|
|
|
|
|
|
|
def reset
|
2011-01-26 20:11:54 -05:00
|
|
|
@response = { 'SendDataPoints' => [], 'ResponseMetadata' => {} }
|
2011-01-25 13:20:33 -05:00
|
|
|
@send_data_point = {}
|
|
|
|
end
|
|
|
|
|
|
|
|
def end_element(name)
|
|
|
|
case name
|
|
|
|
when "Bounces", "Complaints", "DeliveryAttempts", "Rejects", "Timestamp"
|
2011-05-12 16:15:13 -04:00
|
|
|
@send_data_point[name] = value
|
2011-01-25 13:20:33 -05:00
|
|
|
when 'member'
|
2011-01-26 20:11:54 -05:00
|
|
|
@response['SendDataPoints'] << @send_data_point
|
|
|
|
@send_data_point = {}
|
2011-01-25 13:20:33 -05:00
|
|
|
when 'RequestId'
|
2011-05-12 16:15:13 -04:00
|
|
|
@response['ResponseMetadata'][name] = value
|
2011-01-25 13:20:33 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|