Class: Raygun::Configuration
- Inherits:
-
Object
- Object
- Raygun::Configuration
- Defined in:
- lib/raygun/configuration.rb
Constant Summary collapse
- IGNORE_DEFAULT =
Exception classes to ignore by default
['ActiveRecord::RecordNotFound', 'ActionController::RoutingError', 'ActionController::InvalidAuthenticityToken', 'CGI::Session::CookieStore::TamperedWithCookie', 'ActionController::UnknownAction', 'AbstractController::ActionNotFound', 'Mongoid::Errors::DocumentNotFound']
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Your Raygun API Key - this can be found on your dashboard at Raygun.io.
-
#custom_data ⇒ Object
Custom Data to send with each exception.
-
#failsafe_logger ⇒ Object
Failsafe logger (for exceptions that happen when we’re attempting to report exceptions).
-
#ignore ⇒ Object
Array of exception classes to ignore.
-
#logger ⇒ Object
Logger to use when if we find an exception :).
-
#silence_reporting ⇒ Object
Should we silence exception reporting (e.g in Development environments).
-
#version ⇒ Object
Version to use.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 37 38 39 |
# File 'lib/raygun/configuration.rb', line 34 def initialize # set default attribute values @ignore = IGNORE_DEFAULT @custom_data = {} @silence_reporting = false end |
Instance Attribute Details
#api_key ⇒ Object
Your Raygun API Key - this can be found on your dashboard at Raygun.io
5 6 7 |
# File 'lib/raygun/configuration.rb', line 5 def api_key @api_key end |
#custom_data ⇒ Object
Custom Data to send with each exception
14 15 16 |
# File 'lib/raygun/configuration.rb', line 14 def custom_data @custom_data end |
#failsafe_logger ⇒ Object
Failsafe logger (for exceptions that happen when we’re attempting to report exceptions)
23 24 25 |
# File 'lib/raygun/configuration.rb', line 23 def failsafe_logger @failsafe_logger end |
#ignore ⇒ Object
Array of exception classes to ignore
8 9 10 |
# File 'lib/raygun/configuration.rb', line 8 def ignore @ignore end |
#logger ⇒ Object
Logger to use when if we find an exception :)
17 18 19 |
# File 'lib/raygun/configuration.rb', line 17 def logger @logger end |
#silence_reporting ⇒ Object
Should we silence exception reporting (e.g in Development environments)
20 21 22 |
# File 'lib/raygun/configuration.rb', line 20 def silence_reporting @silence_reporting end |
#version ⇒ Object
Version to use
11 12 13 |
# File 'lib/raygun/configuration.rb', line 11 def version @version end |
Instance Method Details
#[](key) ⇒ Object
41 42 43 |
# File 'lib/raygun/configuration.rb', line 41 def [](key) send(key) end |