Class: SendGrid4r::CLI::CancelSchedules::BatchId

Inherits:
SgThor
  • Object
show all
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

#initialize

Constructor Details

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

Instance Method Details

#generate_batch_idObject



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_idObject



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(options))
rescue RestClient::ExceptionWithResponse => e
  puts e.inspect
end