Class: Projects::AllIssuesCountService
- Inherits:
-
CountService
- Object
- BaseCountService
- CountService
- Projects::AllIssuesCountService
- Defined in:
- app/services/projects/all_issues_count_service.rb
Overview
Service class for counting and caching the number of all issues of a project.
Constant Summary
Constants inherited from CountService
Instance Attribute Summary
Attributes inherited from CountService
Instance Method Summary collapse
Methods inherited from CountService
#cache_key, #initialize, query
Methods inherited from BaseCountService
#cache_key, #cache_options, #count, #count_stored?, #delete_cache, #raw?, #refresh_cache, #uncached_count, #update_cache_for_key
Constructor Details
This class inherits a constructor from Projects::CountService
Instance Method Details
#cache_key_name ⇒ Object
11 12 13 |
# File 'app/services/projects/all_issues_count_service.rb', line 11 def cache_key_name 'all_issues_count' end |
#relation_for_count ⇒ Object
7 8 9 |
# File 'app/services/projects/all_issues_count_service.rb', line 7 def relation_for_count @project.issues end |