Class: LeadsClient

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/clients/leads_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ LeadsClient

Initialize the LeadsClient class with an API client instance.

Parameters:

  • connection (LockstepApi)

    The API client object for this connection



22
23
24
# File 'lib/lockstep_sdk/clients/leads_client.rb', line 22

def initialize(connection)
    @connection = connection
end

Instance Method Details

#create_leads(body:) ⇒ Object

Creates one or more Leads within the Lockstep platform and returns the records as created.

A Lead is a person who is interested in the Lockstep platform but needs certain new features in order to use it. If you are interested in the Lockstep platform, you can create a lead with your information and our team will prioritize the feature you need.

Parameters:

  • body (LeadModel)

    The Leads to create



33
34
35
36
# File 'lib/lockstep_sdk/clients/leads_client.rb', line 33

def create_leads(body:)
    path = "/api/v1/Leads"
    @connection.request(:post, path, body, nil)
end