Class: Unleash::Incognia::Configuration
- Inherits:
-
Object
- Object
- Unleash::Incognia::Configuration
- Defined in:
- lib/unleash/incognia/configuration.rb
Instance Attribute Summary collapse
-
#unleash_client ⇒ Object
Returns the value of attribute unleash_client.
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(**attributes) ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 |
# File 'lib/unleash/incognia/configuration.rb', line 6 def initialize(**attributes) attributes.each do |attribute, value| if respond_to?("#{attribute}=") method("#{attribute}=").call(value) else instance_variable_set("@#{attribute}", value) end end end |
Instance Attribute Details
#unleash_client ⇒ Object
Returns the value of attribute unleash_client.
4 5 6 |
# File 'lib/unleash/incognia/configuration.rb', line 4 def unleash_client @unleash_client end |