Parent

ExceptionNotifier::CampfireNotifier

Attributes

room[RW]
subdomain[RW]
token[RW]

Public Class Methods

new(options) click to toggle source
# File lib/exception_notifier/campfire_notifier.rb, line 9
def initialize(options)
  begin
    return unless tinder_available

    subdomain = options.delete(:subdomain)
    room_name = options.delete(:room_name)
    @campfire = Tinder::Campfire.new subdomain, options
    @room     = @campfire.find_room_by_name room_name
  rescue
    @campfire = @room = nil
  end
end

Public Instance Methods

exception_notification(exception) click to toggle source
# File lib/exception_notifier/campfire_notifier.rb, line 22
def exception_notification(exception)
  @room.paste "A new exception occurred: '#{exception.message}' on '#{exception.backtrace.first}'" if active?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.