Class: Entrata::Parameter::Customer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(email:, first_name:, last_name:, phone:) ⇒ Customer

Returns a new instance of Customer.

Parameters:

  • email (String)

    Renter email

  • first_name (String)

    Renter first name

  • last_name (String)

    Renter last name

  • phone (Integer)

    Renter phone number, digits only



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

#emailObject (readonly)

Returns the value of attribute email.



6
7
8
# File 'lib/entrata/parameter/customer.rb', line 6

def email
  @email
end

#first_nameObject (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_nameObject (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

#phoneObject (readonly)

Returns the value of attribute phone.



6
7
8
# File 'lib/entrata/parameter/customer.rb', line 6

def phone
  @phone
end