Class: Itly::PluginOptions
- Inherits:
-
Object
- Object
- Itly::PluginOptions
- Defined in:
- lib/itly/plugin_options.rb
Overview
PluginOptions class for Itly Plugins #load methods
environment
: A Symbol specifying the environment the Itly SDK is running in. # logger
: Allow to set a custom Logger.
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(environment:, logger:) ⇒ PluginOptions
constructor
Create a new PluginOptions object.
Constructor Details
#initialize(environment:, logger:) ⇒ PluginOptions
Create a new PluginOptions object
17 18 19 20 |
# File 'lib/itly/plugin_options.rb', line 17 def initialize(environment:, logger:) @environment = environment @logger = logger end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
12 13 14 |
# File 'lib/itly/plugin_options.rb', line 12 def environment @environment end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
12 13 14 |
# File 'lib/itly/plugin_options.rb', line 12 def logger @logger end |