Class: SendGrid4r::CLI::Stats::Subuser
Overview
SendGrid Web API v3 Stats Subuser
Instance Method Summary
collapse
#initialize
Instance Method Details
#get ⇒ Object
12
13
14
15
16
|
# File 'lib/sendgrid4r/cli/stats/subuser.rb', line 12
def get
puts @client.get_subusers_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#get_monthly ⇒ Object
60
61
62
63
64
|
# File 'lib/sendgrid4r/cli/stats/subuser.rb', line 60
def get_monthly
puts @client.get_subuser_stats_monthly(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#list_monthly ⇒ Object
44
45
46
47
48
|
# File 'lib/sendgrid4r/cli/stats/subuser.rb', line 44
def list_monthly
puts @client.get_subusers_stats_monthly(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#sums ⇒ Object
28
29
30
31
32
|
# File 'lib/sendgrid4r/cli/stats/subuser.rb', line 28
def sums
puts @client.get_subusers_stats_sums(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|