Class: SendGrid4r::CLI::Stats::Advanced

Inherits:
SendGrid4r::CLI::SgThor show all
Defined in:
lib/sendgrid4r/cli/stats/advanced.rb

Overview

SendGrid Web API v3 Stats Advanced

Instance Method Summary collapse

Methods inherited from SendGrid4r::CLI::SgThor

#initialize

Constructor Details

This class inherits a constructor from SendGrid4r::CLI::SgThor

Instance Method Details

#browserObject



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

#clientObject



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_typeObject



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

#deviceObject



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

#geoObject



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_providerObject



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