Class: Unleash::Incognia::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/unleash/incognia/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_clientObject

Returns the value of attribute unleash_client.



4
5
6
# File 'lib/unleash/incognia/configuration.rb', line 4

def unleash_client
  @unleash_client
end