Class: Pendaxes::Notificator
- Inherits:
-
Object
- Object
- Pendaxes::Notificator
- Includes:
- PendingManager
- Defined in:
- lib/pendaxes/notificator.rb,
lib/pendaxes/notificators/file.rb,
lib/pendaxes/notificators/mail.rb,
lib/pendaxes/notificators/terminal.rb,
lib/pendaxes/notificators/growth_forecast.rb
Direct Known Subclasses
Defined Under Namespace
Classes: File, GrowthForecast, Mail, Terminal
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Notificator
constructor
A new instance of Notificator.
- #notify ⇒ Object
- #report_for(pendings) ⇒ Object
- #reporter ⇒ Object
Methods included from Defaults
Methods included from Finder
Methods included from PendingManager
#add, #all_pendings, #pendings, #reset
Constructor Details
#initialize(config = {}) ⇒ Notificator
Returns a new instance of Notificator.
14 15 16 17 |
# File 'lib/pendaxes/notificator.rb', line 14 def initialize(config={}) @config = Hashr.new(self.class.defaults.merge(config)) @pendings = [] end |
Instance Method Details
#notify ⇒ Object
19 20 |
# File 'lib/pendaxes/notificator.rb', line 19 def notify end |
#report_for(pendings) ⇒ Object
26 27 28 29 30 |
# File 'lib/pendaxes/notificator.rb', line 26 def report_for(pendings) r = reporter.new({include_allowed: true}.merge(@config.reporter)) r.add pendings r.report end |