Class: DoorLoop::Reports

Inherits:
Object
  • Object
show all
Defined in:
lib/doorloop/reports.rb

Instance Method Summary collapse

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(options = {})
  unless options[:filter_accountingMethod]
    @logger.error("filter_accountingMethod is required (CASH / ACCRUAL)")
    return nil
  end

  @client.get('reports/balance-sheet-summary', options)
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(options = {})
  unless options[:filter_accountingMethod]
    @logger.error("filter_accountingMethod is required (CASH / ACCRUAL)")
    return nil
  end

  @client.get('reports/cash-flow-statement', options)
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(options = {})
  unless options[:filter_accountingMethod]
    @logger.error("filter_accountingMethod is required (CASH / ACCRUAL)")
    return nil
  end

  @client.get('reports/profit-and-loss-summary', options)
end

#rent_roll(options = {}) ⇒ Object



10
11
12
# File 'lib/doorloop/reports.rb', line 10

def rent_roll(options = {})
  @client.get('reports/rent-roll', options)
end