Class: UniformNotifier::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/uniform_notifier/base.rb

Class Method Summary collapse

Class Method Details

.active?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/uniform_notifier/base.rb', line 3

def self.active?
  false
end

.inline_notify(data) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/uniform_notifier/base.rb', line 7

def self.inline_notify( data )
  return unless active?

  # For compatibility to the old protocol
  data = { :title => data } if data.is_a?(String)

  _inline_notify( data )
end

.out_of_channel_notify(data) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/uniform_notifier/base.rb', line 16

def self.out_of_channel_notify( data )
  return unless active?

  # For compatibility to the old protocol
  data = { :title => data } if data.is_a?(String)

  _out_of_channel_notify(data)
end