Method: FinModeling::ReformulatedCashFlowStatement#initialize
- Defined in:
- lib/finmodeling/reformulated_cash_flow_statement.rb
#initialize(period, cash_change_summary) ⇒ ReformulatedCashFlowStatement
Returns a new instance of ReformulatedCashFlowStatement.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/finmodeling/reformulated_cash_flow_statement.rb', line 5 def initialize(period, cash_change_summary) @period = period @c = cash_change_summary.filter_by_type(:c) # just make this a member.... @i = cash_change_summary.filter_by_type(:i) @d = cash_change_summary.filter_by_type(:d) @f = cash_change_summary.filter_by_type(:f) @c.title = "Cash from operations" @i.title = "Cash investments in operations" @d.title = "Payments to debtholders" @f.title = "Payments to stockholders" if !(cash_change_summary.is_a? CashChangeSummaryFromDifferences) @d.rows << CalculationRow.new(:key => "Investment in Cash and Equivalents", :type => :d, :vals => [-cash_change_summary.total]) end end |