Class: Report::TechProductivity::TechProductivityCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::TechProductivity::TechProductivityCommand
- Defined in:
- app/services/report/tech_productivity/tech_productivity_command.rb
Overview
Service object: tech productivity command.
Instance Method Summary collapse
-
#execute ⇒ Object
Run the report with the given filters and store the result.
-
#success? ⇒ Boolean
Whether the command validated and ran successfully.
Instance Method Details
#execute ⇒ Object
Run the report with the given filters and store the result.
13 14 15 16 17 |
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 13 def execute return unless valid? @result = Report::TechProductivity::TechProductivity.result_report(attributes) end |
#success? ⇒ Boolean
Whether the command validated and ran successfully.
21 22 23 |
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 21 def success? valid? && @result.success? end |