Class: Mailtruck::Configuration
- Inherits:
-
Object
- Object
- Mailtruck::Configuration
- Defined in:
- lib/mailtruck/configuration.rb
Instance Attribute Summary collapse
-
#email_host ⇒ Object
Returns the value of attribute email_host.
-
#receiver_url ⇒ Object
Returns the value of attribute receiver_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(attributes = {}) ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 8 |
# File 'lib/mailtruck/configuration.rb', line 4 def initialize(attributes = {}) @email_host = attributes[:email_host] || "mailtruck.bruzilla.com" @receiver_url = attributes[:receiver_url] || "http://mailtruck.herokuapp.com/faye" @timeout = attributes[:timeout] || 30 end |
Instance Attribute Details
#email_host ⇒ Object
Returns the value of attribute email_host.
2 3 4 |
# File 'lib/mailtruck/configuration.rb', line 2 def email_host @email_host end |
#receiver_url ⇒ Object
Returns the value of attribute receiver_url.
2 3 4 |
# File 'lib/mailtruck/configuration.rb', line 2 def receiver_url @receiver_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
2 3 4 |
# File 'lib/mailtruck/configuration.rb', line 2 def timeout @timeout end |