Class: Pair::Notification::Dispatcher
- Inherits:
-
Object
- Object
- Pair::Notification::Dispatcher
- Defined in:
- lib/pair/notification/dispatcher.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #gntp_notify ⇒ Object
-
#initialize(options = {}) ⇒ Dispatcher
constructor
A new instance of Dispatcher.
- #session_join(user, session) ⇒ Object
- #session_part(user, session) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Dispatcher
Returns a new instance of Dispatcher.
6 7 8 9 |
# File 'lib/pair/notification/dispatcher.rb', line 6 def initialize( = {}) @enabled = Pair.config.growl_enabled? @logger = [:logger] || STDOUT end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
4 5 6 |
# File 'lib/pair/notification/dispatcher.rb', line 4 def enabled @enabled end |
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/pair/notification/dispatcher.rb', line 4 def logger @logger end |
Instance Method Details
#gntp_notify ⇒ Object
19 20 21 |
# File 'lib/pair/notification/dispatcher.rb', line 19 def gntp_notify raise NotImplementedError end |
#session_join(user, session) ⇒ Object
11 12 13 |
# File 'lib/pair/notification/dispatcher.rb', line 11 def session_join(user, session) raise NotImplementedError end |
#session_part(user, session) ⇒ Object
15 16 17 |
# File 'lib/pair/notification/dispatcher.rb', line 15 def session_part(user, session) raise NotImplementedError end |