Class: Itly::PluginOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#environmentObject (readonly)

Returns the value of attribute environment.



12
13
14
# File 'lib/itly/plugin_options.rb', line 12

def environment
  @environment
end

#loggerObject (readonly)

Returns the value of attribute logger.



12
13
14
# File 'lib/itly/plugin_options.rb', line 12

def logger
  @logger
end