Class: Mmailer::Worker
- Inherits:
-
Object
- Object
- Mmailer::Worker
- Defined in:
- lib/mmailer/worker.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
two froms, not equal.
-
#from ⇒ Object
readonly
two froms, not equal.
-
#mail_interval ⇒ Object
readonly
two froms, not equal.
-
#mailHelper ⇒ Object
readonly
two froms, not equal.
-
#obj ⇒ Object
readonly
two froms, not equal.
-
#sleep_time ⇒ Object
readonly
two froms, not equal.
-
#time_interval ⇒ Object
readonly
two froms, not equal.
Instance Method Summary collapse
-
#initialize(from) ⇒ Worker
constructor
A new instance of Worker.
Constructor Details
#initialize(from) ⇒ Worker
Returns a new instance of Worker.
6 7 8 9 10 11 12 13 |
# File 'lib/mmailer/worker.rb', line 6 def initialize(from) @from = from @obj = DRbObject.new_with_uri('druby://localhost:12345') = { subject: Mmailer.configuration.subject, from: Mmailer.configuration.from, template: Mmailer.configuration.template, provider: Mmailer.configuration.provider } @mailHelper = MailHelper.new() load_collection exec end |
Instance Attribute Details
#collection ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def collection @collection end |
#from ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def from @from end |
#mail_interval ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def mail_interval @mail_interval end |
#mailHelper ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def mailHelper @mailHelper end |
#obj ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def obj @obj end |
#sleep_time ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def sleep_time @sleep_time end |
#time_interval ⇒ Object (readonly)
two froms, not equal
4 5 6 |
# File 'lib/mmailer/worker.rb', line 4 def time_interval @time_interval end |