Class: Report::RmasReport::RmasReportCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::RmasReport::RmasReportCommand
- Defined in:
- app/services/report/rmas_report/rmas_report_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
11 12 13 14 |
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 11 def execute return unless valid? @result = Report::RmasReport::RmasReport.result(attributes) end |
#success? ⇒ Boolean
16 17 18 |
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 16 def success? valid? && @result.success? end |