class Chute::Client

Public Class Methods

new(options={}) click to toggle source
# 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