Class: MergeRequests::Mergeability::CheckBaseService
- Inherits:
-
Object
- Object
- MergeRequests::Mergeability::CheckBaseService
- Defined in:
- app/services/merge_requests/mergeability/check_base_service.rb
Direct Known Subclasses
CheckBrokenStatusService, CheckCiStatusService, CheckDiscussionsStatusService, CheckDraftStatusService, CheckOpenStatusService
Instance Attribute Summary collapse
-
#merge_request ⇒ Object
readonly
Returns the value of attribute merge_request.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #cache_key ⇒ Object
-
#cacheable? ⇒ Boolean
When this method is true, we need to implement a cache_key.
-
#initialize(merge_request:, params:) ⇒ CheckBaseService
constructor
A new instance of CheckBaseService.
- #skip? ⇒ Boolean
Constructor Details
#initialize(merge_request:, params:) ⇒ CheckBaseService
Returns a new instance of CheckBaseService.
7 8 9 10 |
# File 'app/services/merge_requests/mergeability/check_base_service.rb', line 7 def initialize(merge_request:, params:) @merge_request = merge_request @params = params end |
Instance Attribute Details
#merge_request ⇒ Object (readonly)
Returns the value of attribute merge_request.
5 6 7 |
# File 'app/services/merge_requests/mergeability/check_base_service.rb', line 5 def merge_request @merge_request end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'app/services/merge_requests/mergeability/check_base_service.rb', line 5 def params @params end |
Instance Method Details
#cache_key ⇒ Object
21 22 23 |
# File 'app/services/merge_requests/mergeability/check_base_service.rb', line 21 def cache_key raise NotImplementedError end |
#cacheable? ⇒ Boolean
When this method is true, we need to implement a cache_key
17 18 19 |
# File 'app/services/merge_requests/mergeability/check_base_service.rb', line 17 def cacheable? raise NotImplementedError end |
#skip? ⇒ Boolean
12 13 14 |
# File 'app/services/merge_requests/mergeability/check_base_service.rb', line 12 def skip? raise NotImplementedError end |