Class: TrackerHub::Request::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tracker_hub/request/config.rb,
lib/tracker_hub/request/config/logger.rb,
lib/tracker_hub/request/config/env_keys.rb

Overview

TrackerHub::Request configuration object, can be setup in an initializer

Defined Under Namespace

Modules: EnvKeys, Logger

Instance Attribute Summary collapse

Instance Attribute Details

#app_versionString

Returns version of the application logging the request data.

Returns:

  • (String)

    version of the application logging the request data



25
26
27
# File 'lib/tracker_hub/request/config.rb', line 25

def app_version
  @app_version
end

#loggerundefined

Returns logger object to log the request data with.

Returns:

  • (undefined)

    logger object to log the request data with



12
13
14
# File 'lib/tracker_hub/request/config.rb', line 12

def logger
  @logger
end

#notificationTrackerHub::Request::Notification

Returns service to send a notification to if request log process fails.

Returns:



21
22
23
# File 'lib/tracker_hub/request/config.rb', line 21

def notification
  @notification
end

#required_keysArray<String>

Returns rack env keys to log.

Returns:

  • (Array<String>)

    rack env keys to log



16
17
18
# File 'lib/tracker_hub/request/config.rb', line 16

def required_keys
  @required_keys
end