Class: Bugno::Configuration
- Inherits:
-
Object
- Object
- Bugno::Configuration
- Defined in:
- lib/bugno/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#exclude_rails_exceptions ⇒ Object
Returns the value of attribute exclude_rails_exceptions.
-
#excluded_exceptions ⇒ Object
Returns the value of attribute excluded_exceptions.
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#scrub_fields ⇒ Object
Returns the value of attribute scrub_fields.
-
#scrub_headers ⇒ Object
Returns the value of attribute scrub_headers.
-
#scrub_password ⇒ Object
Returns the value of attribute scrub_password.
-
#scrub_user ⇒ Object
Returns the value of attribute scrub_user.
-
#scrub_whitelist ⇒ Object
Returns the value of attribute scrub_whitelist.
-
#send_in_background ⇒ Object
Returns the value of attribute send_in_background.
-
#usage_environments ⇒ Object
Returns the value of attribute usage_environments.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/bugno/configuration.rb', line 30 def initialize @api_key = nil @environment = nil @framework = 'ruby' @api_url = API_URL @excluded_exceptions = IGNORE_DEFAULT @exclude_rails_exceptions = false @scrub_fields = %i[passwd password password_confirmation secret confirm_password password_confirmation secret_token api_key access_token session_id] @scrub_headers = ['Authorization'] @scrub_user = true @scrub_password = true @scrub_whitelist = [] @current_user_method = 'current_user' @send_in_background = true @usage_environments = %w[production] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
15 16 17 |
# File 'lib/bugno/configuration.rb', line 15 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
18 19 20 |
# File 'lib/bugno/configuration.rb', line 18 def api_url @api_url end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
26 27 28 |
# File 'lib/bugno/configuration.rb', line 26 def current_user_method @current_user_method end |
#environment ⇒ Object
Returns the value of attribute environment.
16 17 18 |
# File 'lib/bugno/configuration.rb', line 16 def environment @environment end |
#exclude_rails_exceptions ⇒ Object
Returns the value of attribute exclude_rails_exceptions.
19 20 21 |
# File 'lib/bugno/configuration.rb', line 19 def exclude_rails_exceptions @exclude_rails_exceptions end |
#excluded_exceptions ⇒ Object
Returns the value of attribute excluded_exceptions.
20 21 22 |
# File 'lib/bugno/configuration.rb', line 20 def excluded_exceptions @excluded_exceptions end |
#framework ⇒ Object
Returns the value of attribute framework.
17 18 19 |
# File 'lib/bugno/configuration.rb', line 17 def framework @framework end |
#scrub_fields ⇒ Object
Returns the value of attribute scrub_fields.
21 22 23 |
# File 'lib/bugno/configuration.rb', line 21 def scrub_fields @scrub_fields end |
#scrub_headers ⇒ Object
Returns the value of attribute scrub_headers.
22 23 24 |
# File 'lib/bugno/configuration.rb', line 22 def scrub_headers @scrub_headers end |
#scrub_password ⇒ Object
Returns the value of attribute scrub_password.
24 25 26 |
# File 'lib/bugno/configuration.rb', line 24 def scrub_password @scrub_password end |
#scrub_user ⇒ Object
Returns the value of attribute scrub_user.
23 24 25 |
# File 'lib/bugno/configuration.rb', line 23 def scrub_user @scrub_user end |
#scrub_whitelist ⇒ Object
Returns the value of attribute scrub_whitelist.
25 26 27 |
# File 'lib/bugno/configuration.rb', line 25 def scrub_whitelist @scrub_whitelist end |
#send_in_background ⇒ Object
Returns the value of attribute send_in_background.
27 28 29 |
# File 'lib/bugno/configuration.rb', line 27 def send_in_background @send_in_background end |
#usage_environments ⇒ Object
Returns the value of attribute usage_environments.
28 29 30 |
# File 'lib/bugno/configuration.rb', line 28 def usage_environments @usage_environments end |