Method: Fantasydata::Client#initialize

Defined in:
lib/fantasydata/client.rb

#initialize(options = {}) ⇒ Fantasydata::Client

Initializes a new Client object

Parameters:

  • options (Hash) (defaults to: {})


47
48
49
50
51
# File 'lib/fantasydata/client.rb', line 47

def initialize(options={})
  Fantasydata::Configurable.keys.each do |key|
    instance_variable_set(:"@#{key}", options[key] || Fantasydata.instance_variable_get(:"@#{key}"))
  end
end