Class: SendGrid4r::CLI::Category

Inherits:
SgThor
  • Object
show all
Defined in:
lib/sendgrid4r/cli/category.rb

Overview

SendGrid Web API v3 Category

Instance Method Summary collapse

Methods inherited from SgThor

#initialize

Constructor Details

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

Instance Method Details

#listObject



10
11
12
13
14
# File 'lib/sendgrid4r/cli/category.rb', line 10

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