Class: Report::AccountingRecords::AccountingRecordsCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::AccountingRecords::AccountingRecordsCommand
- Defined in:
- app/services/report/accounting_records/accounting_records_command.rb
Overview
Command pattern to encapsulate parameters necessary to run a presence report
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
13 14 15 16 |
# File 'app/services/report/accounting_records/accounting_records_command.rb', line 13 def execute return unless valid? @result = Report::AccountingRecords::AccountingRecords.result_report(attributes) end |
#success? ⇒ Boolean
18 19 20 |
# File 'app/services/report/accounting_records/accounting_records_command.rb', line 18 def success? valid? && @result.success? end |