Class: DoorLoop::Reports
- Inherits:
-
Object
- Object
- DoorLoop::Reports
- Defined in:
- lib/doorloop/reports.rb
Instance Method Summary collapse
- #balance_sheet_summary(options = {}) ⇒ Object
- #cash_flow_statement(options = {}) ⇒ Object
-
#initialize(client) ⇒ Reports
constructor
A new instance of Reports.
- #profit_loss_summary(options = {}) ⇒ Object
- #rent_roll(options = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ Reports
Returns a new instance of Reports.
5 6 7 8 |
# File 'lib/doorloop/reports.rb', line 5 def initialize(client) @client = client @logger = client.logger end |
Instance Method Details
#balance_sheet_summary(options = {}) ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/doorloop/reports.rb', line 32 def balance_sheet_summary( = {}) unless [:filter_accountingMethod] @logger.error("filter_accountingMethod is required (CASH / ACCRUAL)") return nil end @client.get('reports/balance-sheet-summary', ) end |
#cash_flow_statement(options = {}) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/doorloop/reports.rb', line 23 def cash_flow_statement( = {}) unless [:filter_accountingMethod] @logger.error("filter_accountingMethod is required (CASH / ACCRUAL)") return nil end @client.get('reports/cash-flow-statement', ) end |
#profit_loss_summary(options = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/doorloop/reports.rb', line 14 def profit_loss_summary( = {}) unless [:filter_accountingMethod] @logger.error("filter_accountingMethod is required (CASH / ACCRUAL)") return nil end @client.get('reports/profit-and-loss-summary', ) end |
#rent_roll(options = {}) ⇒ Object
10 11 12 |
# File 'lib/doorloop/reports.rb', line 10 def rent_roll( = {}) @client.get('reports/rent-roll', ) end |