Class: SendGrid4r::CLI::SgThor

Inherits:
Thor
  • Object
show all
Defined in:
lib/sendgrid4r/cli/sg_thor.rb

Overview

SendGrid Web API v3 SgThor

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ SgThor

Returns a new instance of SgThor.



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

def initialize(*args)
  super
  @client = SendGrid4r::Client.new(
    username: options[:user], password: options[:pass],
    api_key: options[:api_key], raw_response: true
  )
end