class TrackerHub::Request::Config
TrackerHub::Request
configuration object, can be setup in an initializer
Attributes
app_version[RW]
@return [String] version of the application logging the request data @api public
logger[RW]
@return [undefined] logger object to log the request data with @api public
notification[RW]
@return [TrackerHub::Request::Notification] service to send a
notification to if request log process fails
@api public
required_keys[RW]
@return [Array<String>] rack env keys to log @api public
Public Class Methods
new()
click to toggle source
Instanciate a Config
object with default values
@todo Extract logger logic to be able to store data in another way
(ex: database)
@return [TrackerHub::Request::Config]
@example
> TrackerHub::Request::Config.new
@api private
# File lib/tracker_hub/request/config.rb, line 40 def initialize self.app_version = '' self.logger = Logger.default_config self.required_keys = EnvKeys.default_config self.notification = Request::Notification.new end