Class: CampfireBot::AbsenteeCamper::Notification::ProwlNotifier
- Inherits:
-
Object
- Object
- CampfireBot::AbsenteeCamper::Notification::ProwlNotifier
- Defined in:
- lib/campfire_bot/absentee_camper/notification/prowl_notifier.rb
Instance Method Summary collapse
-
#initialize(room, api_key) ⇒ ProwlNotifier
constructor
A new instance of ProwlNotifier.
- #notify(message) ⇒ Object
Methods included from Helpers
Methods included from Config
Constructor Details
#initialize(room, api_key) ⇒ ProwlNotifier
Returns a new instance of ProwlNotifier.
10 11 12 13 |
# File 'lib/campfire_bot/absentee_camper/notification/prowl_notifier.rb', line 10 def initialize(room, api_key) @api_key = api_key @room = room end |
Instance Method Details
#notify(message) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/campfire_bot/absentee_camper/notification/prowl_notifier.rb', line 15 def notify() Logger.instance.debug "sending prowl notification" Prowl.add(:apikey => @api_key, :application => 'Campfire', :event => @room.name, :description => , :url => room_uri(@room)) end |