Class: SendGrid4r::CLI::Stats::Advanced
Overview
SendGrid Web API v3 Stats Advanced
Instance Method Summary
collapse
#initialize
Instance Method Details
#browser ⇒ Object
65
66
67
68
69
|
# File 'lib/sendgrid4r/cli/stats/advanced.rb', line 65
def browser
puts @client.get_browsers_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#client ⇒ Object
32
33
34
35
36
|
# File 'lib/sendgrid4r/cli/stats/advanced.rb', line 32
def client
puts @client.get_clients_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#client_type ⇒ Object
43
44
45
46
47
|
# File 'lib/sendgrid4r/cli/stats/advanced.rb', line 43
def client_type
puts @client.get_clients_type_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#device ⇒ Object
22
23
24
25
26
|
# File 'lib/sendgrid4r/cli/stats/advanced.rb', line 22
def device
puts @client.get_devices_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#geo ⇒ Object
12
13
14
15
16
|
# File 'lib/sendgrid4r/cli/stats/advanced.rb', line 12
def geo
puts @client.get_geo_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|
#mailbox_provider ⇒ Object
54
55
56
57
58
|
# File 'lib/sendgrid4r/cli/stats/advanced.rb', line 54
def mailbox_provider
puts @client.get_mailbox_providers_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
puts e.inspect
end
|