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
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 |
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 12 def execute return unless valid? @result = Report::RmasReport::RmasReport.result(attributes) end |
#success? ⇒ Boolean
18 19 20 |
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 18 def success? valid? && @result.success? end |