Class: RealPage::RequestSection::GetRentMatrix
- Inherits:
-
Object
- Object
- RealPage::RequestSection::GetRentMatrix
- Defined in:
- lib/real_page/request_section/get_rent_matrix.rb
Overview
Generate the list criteria section of a RealPage request
Instance Method Summary collapse
- #generate(xml_builder) ⇒ Object
-
#initialize(lease_term:, need_by_date:, unit_ids:, viewing_quote_only:) ⇒ GetRentMatrix
constructor
A new instance of GetRentMatrix.
Constructor Details
#initialize(lease_term:, need_by_date:, unit_ids:, viewing_quote_only:) ⇒ GetRentMatrix
Returns a new instance of GetRentMatrix.
7 8 9 10 11 12 |
# File 'lib/real_page/request_section/get_rent_matrix.rb', line 7 def initialize(lease_term:, need_by_date:, unit_ids:, viewing_quote_only:) @lease_term = lease_term @need_by_date = need_by_date @unit_ids = unit_ids @viewing_quote_only = viewing_quote_only end |
Instance Method Details
#generate(xml_builder) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/real_page/request_section/get_rent_matrix.rb', line 14 def generate(xml_builder) xml_builder.getrentmatrix do xml_builder.NeededByDate need_by_date xml_builder.LeaseTerm lease_term xml_builder.unitids do unit_ids.each do |unit_id| xml_builder.int unit_id end end xml_builder.viewingQuoteOnly viewing_quote_only ? 1 : 0 end end |