Class HoptoadNotifier::Notice
In: lib/hoptoad_notifier/notice.rb
Parent: Object

Methods

[]   ignore?   new   to_xml  

External Aliases

parameters -> params
component -> controller

Attributes

action  [R]  The action (if any) that was called in this request
action  [W] 
api_key  [R]  The API key for the project to which this notice should be sent
api_key  [W] 
args  [RW]  Arguments given in the initializer
backtrace  [W] 
backtrace  [R]  The backtrace from the given exception or hash.
backtrace_filters  [W] 
backtrace_filters  [R]  See Configuration#backtrace_filters
cgi_data  [W] 
cgi_data  [R]  CGI variables such as HTTP_METHOD
component  [R]  The component (if any) which was used in this request (usually the controller)
component  [W] 
environment_filters  [W] 
environment_name  [W] 
environment_name  [R]  The name of the server environment (such as "production")
error_class  [R]  The name of the class of error (such as RuntimeError)
error_class  [W] 
error_message  [W] 
error_message  [R]  The message from the exception, or a general description of the error
exception  [R]  The exception that caused this notice, if any
exception  [W] 
hostname  [R]  The host name where this error occurred (if any)
hostname  [W] 
ignore  [R]  See Configuration#ignore
ignore  [W] 
ignore_by_filters  [R]  See Configuration#ignore_by_filters
ignore_by_filters  [W] 
notifier_name  [W] 
notifier_name  [R]  The name of the notifier library sending this notice, such as "Hoptoad Notifier"
notifier_url  [W] 
notifier_url  [R]  A URL for more information about the notifier library sending this notice
notifier_version  [W] 
notifier_version  [R]  The version number of the notifier library sending this notice, such as "2.1.3"
parameters  [R]  A hash of parameters from the query string or post body.
parameters  [W] 
params_filters  [W] 
params_filters  [R]  See Configuration#params_filters
project_root  [R]  The path to the project that caused the error (usually RAILS_ROOT)
project_root  [W] 
session_data  [R]  A hash of session data from the request
session_data  [W] 
url  [R]  The URL at which the error occurred (if any)
url  [W] 

Public Class methods

Public Instance methods

Allows properties to be accessed using a hash-like syntax

@example

  notice[:error_message]

@param [String] method The given key for an attribute @return The attribute value, or self if given +:request+

Determines if this notice should be ignored

Converts the given notice to XML

[Validate]