Class: Report::TechProductivity::TechProductivityCommand

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

Instance Method Summary collapse

Instance Method Details

#executeObject



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

Returns:

  • (Boolean)


15
16
17
# File 'app/services/report/tech_productivity/tech_productivity_command.rb', line 15

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