Class: OmniEvent::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
19
20
21
# File 'lib/omni_event/configuration.rb', line 13

def initialize
  @new_relic_enabled    = false
  @new_relic_api_key    = nil
  @new_relic_account_id = nil
  @retention_days       = 30
  @process_async        = true
  @custom_log_types     = { system_info: 0, system_error: 1 }
  @processors           = {}
end

Instance Attribute Details

#custom_log_typesObject

Returns the value of attribute custom_log_types.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def custom_log_types
  @custom_log_types
end

#new_relic_account_idObject

Returns the value of attribute new_relic_account_id.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def 
  @new_relic_account_id
end

#new_relic_api_keyObject

Returns the value of attribute new_relic_api_key.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def new_relic_api_key
  @new_relic_api_key
end

#new_relic_enabledObject

Returns the value of attribute new_relic_enabled.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def new_relic_enabled
  @new_relic_enabled
end

#process_asyncObject

Returns the value of attribute process_async.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def process_async
  @process_async
end

#processorsObject

Returns the value of attribute processors.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def processors
  @processors
end

#retention_daysObject

Returns the value of attribute retention_days.



5
6
7
# File 'lib/omni_event/configuration.rb', line 5

def retention_days
  @retention_days
end