Class: Report::TechProductivity::TechProductivityCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
app/services/report/tech_productivity/tech_productivity_command.rb

Overview

Service object: tech productivity command.

Instance Method Summary collapse

Instance Method Details

#executeObject



11
12
13
14
15
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 11

def execute
  return unless valid?

  @result = Report::TechProductivity::TechProductivity.result_report(attributes)
end

#success?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 17

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