Class: Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/check_late/notifier.rb

Instance Method Summary collapse

Instance Method Details

#notify!(message) ⇒ Object



6
7
8
9
10
# File 'lib/check_late/notifier.rb', line 6

def notify!(message)
  if message and not message.empty?
    puts message
  end
end

#synack!(message) ⇒ Object



12
13
14
15
16
# File 'lib/check_late/notifier.rb', line 12

def synack!(message)
  if message and not message.empty?
    Synack::Client.new(:host => 'localhost', :port => '1234').say(message)
  end
end