Class: SendGrid4r::Auth
- Inherits:
-
Object
- Object
- SendGrid4r::Auth
- Defined in:
- lib/sendgrid4r/auth.rb
Overview
SendGrid Web API v3 data container for authentication
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username: nil, password: nil, api_key: nil) ⇒ Auth
constructor
A new instance of Auth.
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_key ⇒ Object (readonly)
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/sendgrid4r/auth.rb', line 8 def api_key @api_key end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
8 9 10 |
# File 'lib/sendgrid4r/auth.rb', line 8 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
8 9 10 |
# File 'lib/sendgrid4r/auth.rb', line 8 def username @username end |