Class: SendGrid4r::CLI::Stats::Subuser

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

Overview

SendGrid Web API v3 Stats Subuser

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

#getObject



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_monthlyObject



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_monthlyObject



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

#sumsObject



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