Class: MonkeyMailer::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#adapterObject

Returns the value of attribute adapter.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def adapter
  @adapter
end

#adapter_optionsObject

Returns the value of attribute adapter_options.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def adapter_options
  @adapter_options
end

#loaderObject

Returns the value of attribute loader.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def loader
  @loader
end

#loader_optionsObject

Returns the value of attribute loader_options.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def loader_options
  @loader_options
end

#low_quotaObject

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_sleepObject

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_quotaObject

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_sleepObject

Returns the value of attribute normal_sleep.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def normal_sleep
  @normal_sleep
end

#sleepObject

Returns the value of attribute sleep.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def sleep
  @sleep
end

#urgent_quotaObject

Returns the value of attribute urgent_quota.



13
14
15
# File 'lib/monkey-mailer/config.rb', line 13

def urgent_quota
  @urgent_quota
end