Class: Report::RmasReport::RmasReportCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::RmasReport::RmasReportCommand
- Defined in:
- app/services/report/rmas_report/rmas_report_command.rb
Overview
Service object: rmas report command.
Instance Method Summary collapse
-
#execute ⇒ Object
Run the report with the given filters and store the result.
-
#success? ⇒ Boolean
Whether the command validated and ran successfully.
Instance Method Details
#execute ⇒ Object
Run the report with the given filters and store the result.
14 15 16 17 18 |
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 14 def execute return unless valid? @result = Report::RmasReport::RmasReport.result(attributes) end |
#success? ⇒ Boolean
Whether the command validated and ran successfully.
22 23 24 |
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 22 def success? valid? && @result.success? end |