Class: SendGrid4r::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/sendgrid4r/auth.rb

Overview

SendGrid Web API v3 data container for authentication

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username: nil, password: nil, api_key: nil) ⇒ Auth

Returns a new instance of Auth.



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

def initialize(
  username: nil, password: nil, api_key: nil
)
  @username = username
  @password = password
  @api_key = api_key
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



8
9
10
# File 'lib/sendgrid4r/auth.rb', line 8

def api_key
  @api_key
end

#passwordObject (readonly)

Returns the value of attribute password.



8
9
10
# File 'lib/sendgrid4r/auth.rb', line 8

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



8
9
10
# File 'lib/sendgrid4r/auth.rb', line 8

def username
  @username
end