Class: MonkeyMailer::Configuration
- Inherits:
-
Object
- Object
- MonkeyMailer::Configuration
- Defined in:
- lib/monkey-mailer/config.rb
Constant Summary collapse
- @@defaults =
{ :urgent_quota => 100, :normal_quota => 100, :low_quota => 100, :low_quota => 1, :normal_sleep => 12, :low_sleep => 54, :sleep => 5, :loader => MonkeyMailer::Loaders::Dummy, :loader_options => {}, :adapter => MonkeyMailer::Adapters::Dummy, :adapter_options => {} }
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#adapter_options ⇒ Object
Returns the value of attribute adapter_options.
-
#loader ⇒ Object
Returns the value of attribute loader.
-
#loader_options ⇒ Object
Returns the value of attribute loader_options.
-
#low_quota ⇒ Object
Returns the value of attribute low_quota.
-
#low_sleep ⇒ Object
Returns the value of attribute low_sleep.
-
#normal_quota ⇒ Object
Returns the value of attribute normal_quota.
-
#normal_sleep ⇒ Object
Returns the value of attribute normal_sleep.
-
#sleep ⇒ Object
Returns the value of attribute sleep.
-
#urgent_quota ⇒ Object
Returns the value of attribute urgent_quota.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 |
# File 'lib/monkey-mailer/config.rb', line 30 def initialize @@defaults.each_pair{|key, value| self.send("#{key}=".to_sym,value)} end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def adapter @adapter end |
#adapter_options ⇒ Object
Returns the value of attribute adapter_options.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def @adapter_options end |
#loader ⇒ Object
Returns the value of attribute loader.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def loader @loader end |
#loader_options ⇒ Object
Returns the value of attribute loader_options.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def @loader_options end |
#low_quota ⇒ Object
Returns the value of attribute low_quota.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def low_quota @low_quota end |
#low_sleep ⇒ Object
Returns the value of attribute low_sleep.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def low_sleep @low_sleep end |
#normal_quota ⇒ Object
Returns the value of attribute normal_quota.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def normal_quota @normal_quota end |
#normal_sleep ⇒ Object
Returns the value of attribute normal_sleep.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def normal_sleep @normal_sleep end |
#sleep ⇒ Object
Returns the value of attribute sleep.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def sleep @sleep end |
#urgent_quota ⇒ Object
Returns the value of attribute urgent_quota.
13 14 15 |
# File 'lib/monkey-mailer/config.rb', line 13 def urgent_quota @urgent_quota end |