module CampfireChat::Checks::PairMessage
Public Class Methods
process_notification(notification)
click to toggle source
# File lib/campfire_chat/checks/pair_message.rb, line 6 def self.process_notification(notification) CampfireChat.config.pairs.each do |pair| if notification.message.body.include?(pair.name) notification.important! notification.add_title title(pair) end end end
title(pair)
click to toggle source
# File lib/campfire_chat/checks/pair_message.rb, line 15 def self.title(pair) "#{pair.name}:" end