Class: Sentiero::Reporter::Configuration
- Inherits:
-
Object
- Object
- Sentiero::Reporter::Configuration
- Defined in:
- lib/sentiero/reporter/configuration.rb
Instance Attribute Summary collapse
-
#async ⇒ Object
Returns the value of attribute async.
-
#before_notify ⇒ Object
Returns the value of attribute before_notify.
-
#default_filter_keys ⇒ Object
Returns the value of attribute default_filter_keys.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#filter_keys ⇒ Object
Returns the value of attribute filter_keys.
-
#ignore_exceptions ⇒ Object
Returns the value of attribute ignore_exceptions.
-
#ingest_key ⇒ Object
Returns the value of attribute ingest_key.
-
#max_queue ⇒ Object
Returns the value of attribute max_queue.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#project ⇒ Object
Returns the value of attribute project.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#release ⇒ Object
Returns the value of attribute release.
-
#session_cookie_name ⇒ Object
Returns the value of attribute session_cookie_name.
-
#transport ⇒ Object
Returns the value of attribute transport.
-
#window_cookie_name ⇒ Object
Returns the value of attribute window_cookie_name.
Instance Method Summary collapse
- #active? ⇒ Boolean
- #configured? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sentiero/reporter/configuration.rb', line 17 def initialize @endpoint = nil @ingest_key = nil @project = nil @environment = nil @release = nil @default_filter_keys = Scrubber::DEFAULT_KEYS.dup @filter_keys = [] @enabled = true @async = true @max_queue = 100 @open_timeout = 2 @read_timeout = 3 @session_cookie_name = "sentiero_sid" @window_cookie_name = "sentiero_wid" @transport = nil @ignore_exceptions = [] @before_notify = nil end |
Instance Attribute Details
#async ⇒ Object
Returns the value of attribute async.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def async @async end |
#before_notify ⇒ Object
Returns the value of attribute before_notify.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def before_notify @before_notify end |
#default_filter_keys ⇒ Object
Returns the value of attribute default_filter_keys.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def default_filter_keys @default_filter_keys end |
#enabled ⇒ Object
Returns the value of attribute enabled.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def enabled @enabled end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def endpoint @endpoint end |
#environment ⇒ Object
Returns the value of attribute environment.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def environment @environment end |
#filter_keys ⇒ Object
Returns the value of attribute filter_keys.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def filter_keys @filter_keys end |
#ignore_exceptions ⇒ Object
Returns the value of attribute ignore_exceptions.
15 16 17 |
# File 'lib/sentiero/reporter/configuration.rb', line 15 def ignore_exceptions @ignore_exceptions end |
#ingest_key ⇒ Object
Returns the value of attribute ingest_key.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def ingest_key @ingest_key end |
#max_queue ⇒ Object
Returns the value of attribute max_queue.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def max_queue @max_queue end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def open_timeout @open_timeout end |
#project ⇒ Object
Returns the value of attribute project.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def project @project end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def read_timeout @read_timeout end |
#release ⇒ Object
Returns the value of attribute release.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def release @release end |
#session_cookie_name ⇒ Object
Returns the value of attribute session_cookie_name.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def @session_cookie_name end |
#transport ⇒ Object
Returns the value of attribute transport.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def transport @transport end |
#window_cookie_name ⇒ Object
Returns the value of attribute window_cookie_name.
8 9 10 |
# File 'lib/sentiero/reporter/configuration.rb', line 8 def @window_cookie_name end |
Instance Method Details
#active? ⇒ Boolean
45 46 47 |
# File 'lib/sentiero/reporter/configuration.rb', line 45 def active? enabled && configured? end |
#configured? ⇒ Boolean
41 42 43 |
# File 'lib/sentiero/reporter/configuration.rb', line 41 def configured? !endpoint.nil? && !ingest_key.nil? && !project.nil? end |