Class: Report::TechProductivity::TechProductivityCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Report::TechProductivity::TechProductivityCommand
- Defined in:
- app/services/report/tech_productivity/tech_productivity_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
10 11 12 13 |
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 10 def execute return unless valid? @result = Report::TechProductivity::TechProductivity.result_report(attributes) end |
#success? ⇒ Boolean
15 16 17 |
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 15 def success? valid? && @result.success? end |