Class: SendGrid4r::CLI::Stats::Category
- Inherits:
-
SendGrid4r::CLI::SgThor
- Object
- Thor
- SendGrid4r::CLI::SgThor
- SendGrid4r::CLI::Stats::Category
- Defined in:
- lib/sendgrid4r/cli/stats/category.rb
Overview
SendGrid Web API v3 Stats Category
Instance Method Summary collapse
Methods inherited from SendGrid4r::CLI::SgThor
Constructor Details
This class inherits a constructor from SendGrid4r::CLI::SgThor
Instance Method Details
#get ⇒ Object
12 13 14 15 16 |
# File 'lib/sendgrid4r/cli/stats/category.rb', line 12 def get puts @client.get_categories_stats(parameterise()) rescue RestClient::ExceptionWithResponse => e puts e.inspect end |
#sums ⇒ Object
28 29 30 31 32 |
# File 'lib/sendgrid4r/cli/stats/category.rb', line 28 def sums puts @client.get_categories_stats_sums(parameterise()) rescue RestClient::ExceptionWithResponse => e puts e.inspect end |