Harbor Documentation

Harbor::HoptoadNotifier

Public Class Methods

hoptoad_api_key()

      # File lib/harbor/hoptoad_notifier.rb, line 26
26:     def self.hoptoad_api_key
27:       @@api_key
28:     rescue NameError
29:       raise "Harbor::HoptoadNotifier.api_key not set."  
30:     end

hoptoad_api_key=(api_key)

      # File lib/harbor/hoptoad_notifier.rb, line 22
22:     def self.hoptoad_api_key=(api_key)
23:       @@api_key = api_key
24:     end

hoptoad_api_key?()

      # File lib/harbor/hoptoad_notifier.rb, line 32
32:     def self.hoptoad_api_key?
33:       defined?(@@api_key)
34:     end

notify(exception, request, response, trace)

      # File lib/harbor/hoptoad_notifier.rb, line 36
36:     def self.notify(exception, request, response, trace)
37:       Lilypad.config self.hoptoad_api_key do
38:         environments(%w(production stage staging))
39:       end
40: 
41:       Lilypad.notify(exception, request.env)
42:     end