Class: Entrata::Parameter::Customer
- Inherits:
-
Object
- Object
- Entrata::Parameter::Customer
- Defined in:
- lib/entrata/parameter/customer.rb
Overview
Wraps the user-related data that we pass to Entrata. All of the Customer attributes are required when inserting a lead.
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
Instance Method Summary collapse
-
#initialize(email:, first_name:, last_name:, phone:) ⇒ Customer
constructor
A new instance of Customer.
Constructor Details
#initialize(email:, first_name:, last_name:, phone:) ⇒ Customer
Returns a new instance of Customer.
12 13 14 15 16 17 |
# File 'lib/entrata/parameter/customer.rb', line 12 def initialize(email:, first_name:, last_name:, phone:) @email = email @first_name = first_name @last_name = last_name @phone = phone end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/entrata/parameter/customer.rb', line 6 def email @email end |
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
6 7 8 |
# File 'lib/entrata/parameter/customer.rb', line 6 def first_name @first_name end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
6 7 8 |
# File 'lib/entrata/parameter/customer.rb', line 6 def last_name @last_name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
6 7 8 |
# File 'lib/entrata/parameter/customer.rb', line 6 def phone @phone end |