Class: Pair::Notification::Dispatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/pair/notification/dispatcher.rb

Direct Known Subclasses

LinuxDispatcher, OSXDispatcher

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @enabled = Pair.config.growl_enabled?
  @logger = options[:logger] || STDOUT
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



4
5
6
# File 'lib/pair/notification/dispatcher.rb', line 4

def enabled
  @enabled
end

#loggerObject

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_notifyObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/pair/notification/dispatcher.rb', line 19

def gntp_notify
  raise NotImplementedError
end

#session_join(user, session) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/pair/notification/dispatcher.rb', line 11

def session_join(user, session)
  raise NotImplementedError
end

#session_part(user, session) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/pair/notification/dispatcher.rb', line 15

def session_part(user, session)
  raise NotImplementedError
end