Class: ActiveCampaign::Client

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/active-campaign-simple/client.rb

Instance Method Summary collapse

Methods included from Request

#delete, #get, #patch, #post, #put, #track_event

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



12
13
14
15
16
17
# File 'lib/active-campaign-simple/client.rb', line 12

def initialize(options={})
  options = ActiveCampaign.options.merge(options)
  Config::VALID_OPTION_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end