Class: BigML::Util::Client

Inherits:
Object
  • Object
show all
Includes:
Authenticable, Request, HTTMultiParty
Defined in:
lib/big_ml/util/client.rb

Instance Method Summary collapse

Methods included from Request

#delete, #get, #post, #put

Methods included from Authenticable

#credentials

Constructor Details

#initialize(attrs = {}) ⇒ Client

Returns a new instance of Client.



18
19
20
21
22
23
# File 'lib/big_ml/util/client.rb', line 18

def initialize(attrs={})
  attrs = BigML.options.merge(attrs)
  Config::VALID_OPTIONS_KEYS.each { |key|
    instance_variable_set("@#{key}".to_sym, attrs[key])
  }
end