Class: ActiveCampaignWrapper::Core::ContactAutomationGateway

Inherits:
Object
  • Object
show all
Defined in:
lib/active_campaign_wrapper/core/contact_automation_gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ContactAutomationGateway

Returns a new instance of ContactAutomationGateway.



6
7
8
9
# File 'lib/active_campaign_wrapper/core/contact_automation_gateway.rb', line 6

def initialize(client)
  @client = client
  @config = client.config
end

Instance Method Details

#all(contact_id, **params) ⇒ Object



11
12
13
# File 'lib/active_campaign_wrapper/core/contact_automation_gateway.rb', line 11

def all(contact_id, **params)
  @config.get("/contacts/#{contact_id}/contactAutomations", query: params)
end