Class: PeepingTom::Notifier::Campfire

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

Instance Method Summary collapse

Constructor Details

#initialize(subdomain, token, room) ⇒ Campfire

Returns a new instance of Campfire.



6
7
8
9
# File 'lib/peeping_tom/notifier/campfire.rb', line 6

def initialize(subdomain, token, room)
				Broach.settings = {'account' => subdomain, 'token' => token}
  @room = room
end

Instance Method Details

#notify!(site) ⇒ Object



11
12
13
14
# File 'lib/peeping_tom/notifier/campfire.rb', line 11

def notify!(site)
  msg = "#{site.name} was tested at #{site.url}, and it's busted. You should look into that."
				Broach.speak(@room, msg)
end