Class: Report::CampaignsReport::CampaignsReportCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::CampaignsReport::CampaignsReportCommand
- Defined in:
- app/services/report/campaigns_report/campaigns_report_command.rb
Overview
Service object: campaigns report command.
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 |
# File 'app/services/report/campaigns_report/campaigns_report_command.rb', line 10 def execute return unless valid? @result = Report::CampaignsReport::CampaignsReport.result(attributes) end |
#success? ⇒ Boolean
16 17 18 |
# File 'app/services/report/campaigns_report/campaigns_report_command.rb', line 16 def success? valid? && @result.success? end |