Class: Entrata::Parameter::CustomerPreferences
- Inherits:
-
Object
- Object
- Entrata::Parameter::CustomerPreferences
- Defined in:
- lib/entrata/parameter/customer_preferences.rb
Overview
Wraps the customer preference data that we pass to Entrata. All of the preference attributes are optional when inserting a lead.
Instance Attribute Summary collapse
-
#baths ⇒ Object
readonly
Returns the value of attribute baths.
-
#beds ⇒ Object
readonly
Returns the value of attribute beds.
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#lease_terms ⇒ Object
readonly
Returns the value of attribute lease_terms.
-
#max_price ⇒ Object
readonly
Returns the value of attribute max_price.
-
#min_price ⇒ Object
readonly
Returns the value of attribute min_price.
-
#move_in_date ⇒ Object
readonly
Returns the value of attribute move_in_date.
-
#number_of_pets ⇒ Object
readonly
Returns the value of attribute number_of_pets.
-
#preferred_floorplan_id ⇒ Object
readonly
Returns the value of attribute preferred_floorplan_id.
-
#preferred_unit_id ⇒ Object
readonly
Returns the value of attribute preferred_unit_id.
Instance Method Summary collapse
-
#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
constructor
A new instance of CustomerPreferences.
Constructor Details
#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.
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 |
Instance Attribute Details
#baths ⇒ Object (readonly)
Returns the value of attribute baths.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def baths @baths end |
#beds ⇒ Object (readonly)
Returns the value of attribute beds.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def beds @beds end |
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def comments @comments end |
#lease_terms ⇒ Object (readonly)
Returns the value of attribute lease_terms.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def lease_terms @lease_terms end |
#max_price ⇒ Object (readonly)
Returns the value of attribute max_price.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def max_price @max_price end |
#min_price ⇒ Object (readonly)
Returns the value of attribute min_price.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def min_price @min_price end |
#move_in_date ⇒ Object (readonly)
Returns the value of attribute move_in_date.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def move_in_date @move_in_date end |
#number_of_pets ⇒ Object (readonly)
Returns the value of attribute number_of_pets.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def number_of_pets @number_of_pets end |
#preferred_floorplan_id ⇒ Object (readonly)
Returns the value of attribute preferred_floorplan_id.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def preferred_floorplan_id @preferred_floorplan_id end |
#preferred_unit_id ⇒ Object (readonly)
Returns the value of attribute preferred_unit_id.
6 7 8 |
# File 'lib/entrata/parameter/customer_preferences.rb', line 6 def preferred_unit_id @preferred_unit_id end |