Class: LockstepSdk::LeadModel

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/models/lead_model.rb

Overview

Represents leads for creating new ERP connectors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ LeadModel

Initialize the LeadModel using the provided prototype



24
25
26
27
28
29
30
# File 'lib/lockstep_sdk/models/lead_model.rb', line 24

def initialize(params = {})
    @lead_id = params.dig(:lead_id)
    @name = params.dig(:name)
    @company = params.dig(:company)
    @email = params.dig(:email)
    @erp_system = params.dig(:erp_system)
end

Instance Attribute Details

#companyString

Returns Name of company of lead.

Returns:

  • (String)

    Name of company of lead



37
38
39
# File 'lib/lockstep_sdk/models/lead_model.rb', line 37

def company
  @company
end

#emailString

Returns Email of lead.

Returns:

  • (String)

    Email of lead



39
40
41
# File 'lib/lockstep_sdk/models/lead_model.rb', line 39

def email
  @email
end

#erp_systemString

Returns Requested ERP of lead.

Returns:

  • (String)

    Requested ERP of lead



41
42
43
# File 'lib/lockstep_sdk/models/lead_model.rb', line 41

def erp_system
  @erp_system
end

#lead_idUuid

Returns The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.

Returns:

  • (Uuid)

    The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.



33
34
35
# File 'lib/lockstep_sdk/models/lead_model.rb', line 33

def lead_id
  @lead_id
end

#nameString

Returns Name of lead.

Returns:

  • (String)

    Name of lead



35
36
37
# File 'lib/lockstep_sdk/models/lead_model.rb', line 35

def name
  @name
end