Class: Bugno::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/bugno/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



15
16
17
# File 'lib/bugno/configuration.rb', line 15

def api_key
  @api_key
end

#api_urlObject

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_methodObject

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

#environmentObject

Returns the value of attribute environment.



16
17
18
# File 'lib/bugno/configuration.rb', line 16

def environment
  @environment
end

#exclude_rails_exceptionsObject

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_exceptionsObject

Returns the value of attribute excluded_exceptions.



20
21
22
# File 'lib/bugno/configuration.rb', line 20

def excluded_exceptions
  @excluded_exceptions
end

#frameworkObject

Returns the value of attribute framework.



17
18
19
# File 'lib/bugno/configuration.rb', line 17

def framework
  @framework
end

#scrub_fieldsObject

Returns the value of attribute scrub_fields.



21
22
23
# File 'lib/bugno/configuration.rb', line 21

def scrub_fields
  @scrub_fields
end

#scrub_headersObject

Returns the value of attribute scrub_headers.



22
23
24
# File 'lib/bugno/configuration.rb', line 22

def scrub_headers
  @scrub_headers
end

#scrub_passwordObject

Returns the value of attribute scrub_password.



24
25
26
# File 'lib/bugno/configuration.rb', line 24

def scrub_password
  @scrub_password
end

#scrub_userObject

Returns the value of attribute scrub_user.



23
24
25
# File 'lib/bugno/configuration.rb', line 23

def scrub_user
  @scrub_user
end

#scrub_whitelistObject

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_backgroundObject

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_environmentsObject

Returns the value of attribute usage_environments.



28
29
30
# File 'lib/bugno/configuration.rb', line 28

def usage_environments
  @usage_environments
end