Class: CoffeeOutside::StdoutDispatcher
- Inherits:
-
DispatcherBase
- Object
- DispatcherBase
- CoffeeOutside::StdoutDispatcher
- Defined in:
- lib/coffeeoutside/dispatchers/stdout.rb
Instance Attribute Summary
Attributes inherited from DispatcherBase
#end_time, #forecast, #location, #start_time
Instance Method Summary collapse
Methods inherited from DispatcherBase
#debug_method, #initialize, #notify, #production?
Constructor Details
This class inherits a constructor from CoffeeOutside::DispatcherBase
Instance Method Details
#notify_debug ⇒ Object
13 14 15 |
# File 'lib/coffeeoutside/dispatchers/stdout.rb', line 13 def notify_debug puts "Chosen location is #{@location.name}" end |
#notify_production ⇒ Object
7 8 9 10 11 |
# File 'lib/coffeeoutside/dispatchers/stdout.rb', line 7 def notify_production # Since the bot is cron-based, don't write anything to stdout unless # there's a problem # puts "Chosen location is #{@location.name}" end |