Class: SendGrid4r::CLI::Stats::Category

Inherits:
SendGrid4r::CLI::SgThor show all
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

#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/category.rb', line 12

def get
  puts @client.get_categories_stats(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
  puts e.inspect
end

#sumsObject



28
29
30
31
32
# File 'lib/sendgrid4r/cli/stats/category.rb', line 28

def sums
  puts @client.get_categories_stats_sums(parameterise(options))
rescue RestClient::ExceptionWithResponse => e
  puts e.inspect
end