Class: SendGrid4r::CLI::CancelSchedules::BatchId
- Defined in:
- lib/sendgrid4r/cli/cancel_schedules/batch_id.rb
Overview
SendGrid Web API v3 CancelSchedules BatchId
Instance Method Summary collapse
Methods inherited from SgThor
Constructor Details
This class inherits a constructor from SendGrid4r::CLI::SgThor
Instance Method Details
#generate_batch_id ⇒ Object
8 9 10 11 12 |
# File 'lib/sendgrid4r/cli/cancel_schedules/batch_id.rb', line 8 def generate_batch_id puts @client.generate_batch_id rescue RestClient::ExceptionWithResponse => e puts e.inspect end |
#validate_batch_id ⇒ Object
16 17 18 19 20 |
# File 'lib/sendgrid4r/cli/cancel_schedules/batch_id.rb', line 16 def validate_batch_id puts @client.validate_batch_id(parameterise()) rescue RestClient::ExceptionWithResponse => e puts e.inspect end |