Class: Pair::Notification::Dispatcher
- Inherits:
-
Object
- Object
- Pair::Notification::Dispatcher
show all
- Defined in:
- lib/pair/notification/dispatcher.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options = {}) ⇒ Dispatcher
6
7
8
9
|
# File 'lib/pair/notification/dispatcher.rb', line 6
def initialize(options = {})
@enabled = Pair.config.growl_enabled?
@logger = options[: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
|