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