Class: ActiveCampaignWrapper::Core::ContactScoreValueGateway

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ ContactScoreValueGateway

Returns a new instance of ContactScoreValueGateway.



6
7
8
9
# File 'lib/active_campaign_wrapper/core/contact_score_value_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_score_value_gateway.rb', line 11

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