Class: AmazonSES::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon_ses/stats.rb

Class Method Summary collapse

Class Method Details

.send_quota(secret, key) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/amazon_ses/stats.rb', line 4

def self.send_quota(secret,key)
  begin 
    AmazonSES::Base.make_request({"Action"=>"GetSendQuota"},secret,key)
  rescue Exception=>e
    raise e.to_s
  end
end

.send_stats(secret, key) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/amazon_ses/stats.rb', line 11

def self.send_stats(secret,key)
  begin
    AmazonSES::Base.make_request({"Action"=>"GetSendStatistics"},secret,key)
  rescue Exception=>e
    raise e.to_s
  end
end