Class: Mailgat::Configuration
- Inherits:
-
Object
- Object
- Mailgat::Configuration
- Defined in:
- lib/mailgat.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#api_base ⇒ Object
Returns the value of attribute api_base.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
49 50 51 52 53 54 |
# File 'lib/mailgat.rb', line 49 def initialize @api_base = "https://api.mailgun.net/v2" @api_key = ENV["MAILGUN_API_KEY"] @public_key = ENV["MAILGUN_PUBLIC_KEY"] @adapter = Faraday.default_adapter end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
47 48 49 |
# File 'lib/mailgat.rb', line 47 def adapter @adapter end |
#api_base ⇒ Object
Returns the value of attribute api_base.
47 48 49 |
# File 'lib/mailgat.rb', line 47 def api_base @api_base end |
#api_key ⇒ Object
Returns the value of attribute api_key.
47 48 49 |
# File 'lib/mailgat.rb', line 47 def api_key @api_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
47 48 49 |
# File 'lib/mailgat.rb', line 47 def public_key @public_key end |