Class: Uncaught::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Uncaught::Configuration
- Defined in:
- lib/uncaught/types.rb
Overview
Configuration object.
Instance Attribute Summary collapse
-
#before_send ⇒ Object
Returns the value of attribute before_send.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#framework_version ⇒ Object
Returns the value of attribute framework_version.
-
#ignore_errors ⇒ Object
Returns the value of attribute ignore_errors.
-
#local_output_dir ⇒ Object
Returns the value of attribute local_output_dir.
-
#max_breadcrumbs ⇒ Object
Returns the value of attribute max_breadcrumbs.
-
#max_events_per_minute ⇒ Object
Returns the value of attribute max_events_per_minute.
-
#project_key ⇒ Object
Returns the value of attribute project_key.
-
#release ⇒ Object
Returns the value of attribute release.
-
#sanitize_keys ⇒ Object
Returns the value of attribute sanitize_keys.
-
#transport ⇒ Object
Returns the value of attribute transport.
-
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(**kwargs) ⇒ Configuration
Returns a new instance of Configuration.
71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/uncaught/types.rb', line 71 def initialize(**kwargs) super( enabled: true, debug: false, max_breadcrumbs: 20, max_events_per_minute: 30, transport: "local", sanitize_keys: [], ignore_errors: [], **kwargs ) end |
Instance Attribute Details
#before_send ⇒ Object
Returns the value of attribute before_send
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def before_send @before_send end |
#debug ⇒ Object
Returns the value of attribute debug
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def debug @debug end |
#enabled ⇒ Object
Returns the value of attribute enabled
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def enabled @enabled end |
#endpoint ⇒ Object
Returns the value of attribute endpoint
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def endpoint @endpoint end |
#environment ⇒ Object
Returns the value of attribute environment
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def environment @environment end |
#framework ⇒ Object
Returns the value of attribute framework
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def framework @framework end |
#framework_version ⇒ Object
Returns the value of attribute framework_version
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def framework_version @framework_version end |
#ignore_errors ⇒ Object
Returns the value of attribute ignore_errors
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def ignore_errors @ignore_errors end |
#local_output_dir ⇒ Object
Returns the value of attribute local_output_dir
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def local_output_dir @local_output_dir end |
#max_breadcrumbs ⇒ Object
Returns the value of attribute max_breadcrumbs
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def @max_breadcrumbs end |
#max_events_per_minute ⇒ Object
Returns the value of attribute max_events_per_minute
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def max_events_per_minute @max_events_per_minute end |
#project_key ⇒ Object
Returns the value of attribute project_key
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def project_key @project_key end |
#release ⇒ Object
Returns the value of attribute release
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def release @release end |
#sanitize_keys ⇒ Object
Returns the value of attribute sanitize_keys
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def sanitize_keys @sanitize_keys end |
#transport ⇒ Object
Returns the value of attribute transport
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def transport @transport end |
#webhook_url ⇒ Object
Returns the value of attribute webhook_url
63 64 65 |
# File 'lib/uncaught/types.rb', line 63 def webhook_url @webhook_url end |