Class: Chute::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/chute/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/chute/client.rb', line 29

def initialize(options={})
  # Merge the config values from the module and those passed
  # to the client.
  merged_options = Chute.options.merge(options)

  # Copy the merged values to this client and ignore those
  # not part of our configuration
  Configuration::VALID_CONFIG_KEYS.each do |key|
    send("#{key}=", merged_options[key])
  end
end