Class: Branches::DivergingCommitCountsService
- Inherits:
-
Object
- Object
- Branches::DivergingCommitCountsService
- Defined in:
- app/services/branches/diverging_commit_counts_service.rb
Instance Method Summary collapse
- #call(branch) ⇒ Object
-
#initialize(repository) ⇒ DivergingCommitCountsService
constructor
A new instance of DivergingCommitCountsService.
Constructor Details
#initialize(repository) ⇒ DivergingCommitCountsService
Returns a new instance of DivergingCommitCountsService.
5 6 7 8 |
# File 'app/services/branches/diverging_commit_counts_service.rb', line 5 def initialize(repository) @repository = repository @cache = Gitlab::RepositoryCache.new(repository) end |
Instance Method Details
#call(branch) ⇒ Object
10 11 12 |
# File 'app/services/branches/diverging_commit_counts_service.rb', line 10 def call(branch) diverging_commit_counts(branch) end |