Class: RealPage::DocumentParser::RentMatrices::Rows
- Defined in:
- lib/real_page/document_parser/rent_matrices/rows.rb
Overview
Parse the rows from a GetRentMatrix response
Instance Attribute Summary
Attributes inherited from Base
#request_name, #request_params
Instance Method Summary collapse
-
#parse(rows_hash) ⇒ Array<RealPage::Model::RentMatrix::Row>
The rows contained in this rows_hash.
Methods inherited from Base
Constructor Details
This class inherits a constructor from RealPage::DocumentParser::Base
Instance Method Details
#parse(rows_hash) ⇒ Array<RealPage::Model::RentMatrix::Row>
Returns the rows contained in this rows_hash.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/real_page/document_parser/rent_matrices/rows.rb', line 16 def parse(rows_hash) rows = Utils::ArrayFetcher.new(hash: rows_hash, key: 'Row').fetch = Options.new rows.map do |row| = Utils::ArrayFetcher.new(hash: row, key: 'Options').fetch = .parse() attrs = row.merge('Options' => ) Model::RentMatrix::Row.new(attrs) end end |