Class: Report::RmasReport::RmasReportCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
app/services/report/rmas_report/rmas_report_command.rb

Overview

Service object: rmas report command.

Instance Method Summary collapse

Instance Method Details

#executeObject



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

Returns:

  • (Boolean)


18
19
20
# File 'app/services/report/rmas_report/rmas_report_command.rb', line 18

def success?
  valid? && @result.success?
end