Class: Rox::Server::RoxOptions
- Inherits:
-
Object
- Object
- Rox::Server::RoxOptions
- Defined in:
- lib/rox/server/rox_options.rb
Instance Attribute Summary collapse
-
#configuration_fetched_handler ⇒ Object
Returns the value of attribute configuration_fetched_handler.
-
#dev_mode_key ⇒ Object
Returns the value of attribute dev_mode_key.
-
#fetch_interval ⇒ Object
Returns the value of attribute fetch_interval.
-
#impression_handler ⇒ Object
Returns the value of attribute impression_handler.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#roxy_url ⇒ Object
Returns the value of attribute roxy_url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(dev_mode_key: nil, version: nil, fetch_interval: nil, logger: nil, impression_handler: nil, configuration_fetched_handler: nil, roxy_url: nil) ⇒ RoxOptions
constructor
A new instance of RoxOptions.
Constructor Details
#initialize(dev_mode_key: nil, version: nil, fetch_interval: nil, logger: nil, impression_handler: nil, configuration_fetched_handler: nil, roxy_url: nil) ⇒ RoxOptions
Returns a new instance of RoxOptions.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rox/server/rox_options.rb', line 9 def initialize(dev_mode_key: nil, version: nil, fetch_interval: nil, logger: nil, impression_handler: nil, configuration_fetched_handler: nil, roxy_url: nil) @dev_mode_key = dev_mode_key || 'stam' @version = version || '0.0' if fetch_interval.nil? @fetch_interval = 60 else @fetch_interval = fetch_interval < 30 ? 30 : fetch_interval end Rox::Core::Logging.logger = logger || ServerLogger.new @impression_handler = impression_handler @configuration_fetched_handler = configuration_fetched_handler @roxy_url = roxy_url end |
Instance Attribute Details
#configuration_fetched_handler ⇒ Object
Returns the value of attribute configuration_fetched_handler.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def configuration_fetched_handler @configuration_fetched_handler end |
#dev_mode_key ⇒ Object
Returns the value of attribute dev_mode_key.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def dev_mode_key @dev_mode_key end |
#fetch_interval ⇒ Object
Returns the value of attribute fetch_interval.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def fetch_interval @fetch_interval end |
#impression_handler ⇒ Object
Returns the value of attribute impression_handler.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def impression_handler @impression_handler end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def logger @logger end |
#roxy_url ⇒ Object
Returns the value of attribute roxy_url.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def roxy_url @roxy_url end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/rox/server/rox_options.rb', line 7 def version @version end |