Class: LockstepSdk::LeadModel
- Inherits:
-
Object
- Object
- LockstepSdk::LeadModel
- Defined in:
- lib/lockstep_sdk/models/lead_model.rb
Overview
Represents leads for creating new ERP connectors
Instance Attribute Summary collapse
-
#company ⇒ String
Name of company of lead.
-
#email ⇒ String
Email of lead.
-
#erp_system ⇒ String
Requested ERP of lead.
-
#lead_id ⇒ Uuid
The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
-
#name ⇒ String
Name of lead.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ LeadModel
constructor
Initialize the LeadModel using the provided prototype.
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
#company ⇒ String
Returns Name of company of lead.
37 38 39 |
# File 'lib/lockstep_sdk/models/lead_model.rb', line 37 def company @company end |
#email ⇒ String
Returns Email of lead.
39 40 41 |
# File 'lib/lockstep_sdk/models/lead_model.rb', line 39 def email @email end |
#erp_system ⇒ String
Returns Requested ERP of lead.
41 42 43 |
# File 'lib/lockstep_sdk/models/lead_model.rb', line 41 def erp_system @erp_system end |
#lead_id ⇒ Uuid
Returns 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 |
#name ⇒ String
Returns Name of lead.
35 36 37 |
# File 'lib/lockstep_sdk/models/lead_model.rb', line 35 def name @name end |