Class: Uncaught::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/uncaught/types.rb

Overview

Configuration object.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sendObject

Returns the value of attribute before_send

Returns:

  • (Object)

    the current value of before_send



63
64
65
# File 'lib/uncaught/types.rb', line 63

def before_send
  @before_send
end

#debugObject

Returns the value of attribute debug

Returns:

  • (Object)

    the current value of debug



63
64
65
# File 'lib/uncaught/types.rb', line 63

def debug
  @debug
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



63
64
65
# File 'lib/uncaught/types.rb', line 63

def enabled
  @enabled
end

#endpointObject

Returns the value of attribute endpoint

Returns:

  • (Object)

    the current value of endpoint



63
64
65
# File 'lib/uncaught/types.rb', line 63

def endpoint
  @endpoint
end

#environmentObject

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



63
64
65
# File 'lib/uncaught/types.rb', line 63

def environment
  @environment
end

#frameworkObject

Returns the value of attribute framework

Returns:

  • (Object)

    the current value of framework



63
64
65
# File 'lib/uncaught/types.rb', line 63

def framework
  @framework
end

#framework_versionObject

Returns the value of attribute framework_version

Returns:

  • (Object)

    the current value of framework_version



63
64
65
# File 'lib/uncaught/types.rb', line 63

def framework_version
  @framework_version
end

#ignore_errorsObject

Returns the value of attribute ignore_errors

Returns:

  • (Object)

    the current value of ignore_errors



63
64
65
# File 'lib/uncaught/types.rb', line 63

def ignore_errors
  @ignore_errors
end

#local_output_dirObject

Returns the value of attribute local_output_dir

Returns:

  • (Object)

    the current value of local_output_dir



63
64
65
# File 'lib/uncaught/types.rb', line 63

def local_output_dir
  @local_output_dir
end

#max_breadcrumbsObject

Returns the value of attribute max_breadcrumbs

Returns:

  • (Object)

    the current value of max_breadcrumbs



63
64
65
# File 'lib/uncaught/types.rb', line 63

def max_breadcrumbs
  @max_breadcrumbs
end

#max_events_per_minuteObject

Returns the value of attribute max_events_per_minute

Returns:

  • (Object)

    the current value of 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_keyObject

Returns the value of attribute project_key

Returns:

  • (Object)

    the current value of project_key



63
64
65
# File 'lib/uncaught/types.rb', line 63

def project_key
  @project_key
end

#releaseObject

Returns the value of attribute release

Returns:

  • (Object)

    the current value of release



63
64
65
# File 'lib/uncaught/types.rb', line 63

def release
  @release
end

#sanitize_keysObject

Returns the value of attribute sanitize_keys

Returns:

  • (Object)

    the current value of sanitize_keys



63
64
65
# File 'lib/uncaught/types.rb', line 63

def sanitize_keys
  @sanitize_keys
end

#transportObject

Returns the value of attribute transport

Returns:

  • (Object)

    the current value of transport



63
64
65
# File 'lib/uncaught/types.rb', line 63

def transport
  @transport
end

#webhook_urlObject

Returns the value of attribute webhook_url

Returns:

  • (Object)

    the current value of webhook_url



63
64
65
# File 'lib/uncaught/types.rb', line 63

def webhook_url
  @webhook_url
end