Class: Report::CashFlow::CashFlowCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::CashFlow::CashFlowCommand
- Defined in:
- app/services/report/cash_flow/cash_flow_command.rb
Overview
Command pattern to encapsulate parameters necessary to run a presence report
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.years ⇒ Object
23 24 25 |
# File 'app/services/report/cash_flow/cash_flow_command.rb', line 23 def self.years (2012..Date.current.year).to_a end |
Instance Method Details
#execute ⇒ Object
8 9 10 11 |
# File 'app/services/report/cash_flow/cash_flow_command.rb', line 8 def execute return unless valid? @result = Report::CashFlow::CashFlow.result_report(attributes) end |