Class: PairingShuffler::Shuffler
- Inherits:
-
Object
- Object
- PairingShuffler::Shuffler
- Defined in:
- lib/pairing_shuffler.rb
Constant Summary collapse
- DAY =
24 * 60 * 60
Instance Method Summary collapse
-
#initialize(config) ⇒ Shuffler
constructor
A new instance of Shuffler.
- #send_emails ⇒ Object
Constructor Details
#initialize(config) ⇒ Shuffler
Returns a new instance of Shuffler.
13 14 15 |
# File 'lib/pairing_shuffler.rb', line 13 def initialize(config) @config = config end |
Instance Method Details
#send_emails ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/pairing_shuffler.rb', line 17 def send_emails Mailer.new(@config).session do |mailer| list.each do |emails| mailer.notify(emails) end end end |