Class: Dude::Gitlab::CountSpendTime
- Defined in:
- lib/dude/gitlab/count_spend_time.rb
Constant Summary
Constants included from Settings
Instance Attribute Summary
Attributes included from Service
Instance Method Summary collapse
Methods inherited from Base
#check_input_data, #configure_gitlab, #initialize, #issue_exists?, #project_id, #throw_error
Methods included from Settings
Methods included from Service
Constructor Details
This class inherits a constructor from Dude::Gitlab::Base
Instance Method Details
#call ⇒ Object
4 5 6 |
# File 'lib/dude/gitlab/count_spend_time.rb', line 4 def call time_stats.total_time_spent.to_i end |
#time_stats ⇒ Object
8 9 10 |
# File 'lib/dude/gitlab/count_spend_time.rb', line 8 def time_stats ::Gitlab.time_stats_for_issue(project_id, [:issue_id]) end |