Method: Entrata::Parameter::CustomerPreferences#initialize

Defined in:
lib/entrata/parameter/customer_preferences.rb

#initialize(beds: nil, baths: nil, comments: nil, lease_terms: nil, move_in_date: nil, number_of_pets: nil, preferred_floorplan_id: nil, preferred_unit_id: nil, min_price: nil, max_price: nil) ⇒ CustomerPreferences

Returns a new instance of CustomerPreferences.

Parameters:

  • beds (Integer) (defaults to: nil)

    Number of beds the renter is interested in

  • baths (Float) (defaults to: nil)

    Number of baths the renter is interested in

  • comments (String) (defaults to: nil)

    Notes about the renter’s preferences plus any information about a tour if there is one, plus the renter’s message for the property. Entrata only gives us one key for comments, so we need to put everything there.

  • lease_terms (String) (defaults to: nil)

    Length of preferred lease term, e.g. ‘12 months’

  • move_in_date (Date) (defaults to: nil)

    Renter move in date

  • number_of_pets (String) (defaults to: nil)

    The number of pets the renter has

  • preferred_floorplan_id (Integer) (defaults to: nil)

    Entrata’s ID for the floorplan the renter is interested in. They do not verify that this ID matches any real floorplan on the property in their system.

  • preferred_unit_id (Integer) (defaults to: nil)

    Entrata’s ID for the unit the renter is interested in. They do not verify that this ID matches any real unit on the property in their system.

  • min_price (Float) (defaults to: nil)

    Renter’s minimum budget

  • max_price (Float) (defaults to: nil)

    Renter’s maximum budget



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/entrata/parameter/customer_preferences.rb', line 35

def initialize(
  beds: nil,
  baths: nil,
  comments: nil,
  lease_terms: nil,
  move_in_date: nil,
  number_of_pets: nil,
  preferred_floorplan_id: nil,
  preferred_unit_id: nil,
  min_price: nil,
  max_price: nil
)

  @beds = beds
  @baths = baths
  @comments = comments
  @lease_terms = lease_terms
  @move_in_date = move_in_date
  @number_of_pets = number_of_pets
  @preferred_floorplan_id = preferred_floorplan_id
  @preferred_unit_id = preferred_unit_id
  @min_price = min_price
  @max_price = max_price
end