Class: YieldStarClient::AvailableFloorPlan
- Inherits:
-
Modelish::Base
- Object
- Modelish::Base
- YieldStarClient::AvailableFloorPlan
- Defined in:
- lib/yield_star_client/rent_methods.rb
Overview
Represents a floor plan with available units.
Instance Attribute Summary collapse
-
#bathrooms ⇒ Float
the number of bathrooms in this floor plan.
-
#bedrooms ⇒ Float
the number of bedrooms in this floor plan.
-
#effective_date ⇒ Date
the date that all listed prices are considered effective.
-
#external_property_id ⇒ String
the ID of the property associated with the floor plan.
-
#floor_plan_name ⇒ String
the name of the floor plan that matches the Price Optimizer dashboard.
-
#square_feet ⇒ Integer
the square footage of the floor plan.
-
#units ⇒ Array<AvailableUnit>
the available unit data associated with this floor plan.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AvailableFloorPlan
constructor
A new instance of AvailableFloorPlan.
Constructor Details
#initialize(options = {}) ⇒ AvailableFloorPlan
Returns a new instance of AvailableFloorPlan.
69 70 71 72 73 74 |
# File 'lib/yield_star_client/rent_methods.rb', line 69 def initialize( = {}) super() # TODO: add support for nested types to modelish? self.units = [self.units].flatten.collect { |u| AvailableUnit.new(u) } end |
Instance Attribute Details
#bathrooms ⇒ Float
the number of bathrooms in this floor plan
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def bathrooms @bathrooms end |
#bedrooms ⇒ Float
the number of bedrooms in this floor plan
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def bedrooms @bedrooms end |
#effective_date ⇒ Date
the date that all listed prices are considered effective
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def effective_date @effective_date end |
#external_property_id ⇒ String
the ID of the property associated with the floor plan
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def external_property_id @external_property_id end |
#floor_plan_name ⇒ String
the name of the floor plan that matches the Price Optimizer dashboard
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def floor_plan_name @floor_plan_name end |
#square_feet ⇒ Integer
the square footage of the floor plan
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def square_feet @square_feet end |
#units ⇒ Array<AvailableUnit>
the available unit data associated with this floor plan
60 61 62 |
# File 'lib/yield_star_client/rent_methods.rb', line 60 def units @units end |