Class: Juden::Notifier
- Inherits:
-
Object
- Object
- Juden::Notifier
- Defined in:
- lib/juden.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
11 12 13 |
# File 'lib/juden.rb', line 11 def run new.run end |
Instance Method Details
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/juden.rb', line 16 def run loop do if send_reminder? post_to_webhook else puts %(Don't have to send remainder) end sleep config.interval_seconds end end |