Class: SystemNotes::BaseService
- Inherits:
-
Object
- Object
- SystemNotes::BaseService
- Defined in:
- app/services/system_notes/base_service.rb
Direct Known Subclasses
AlertManagementService, CommitService, DesignManagementService, IncidentService, IncidentsService, IssuablesService, MergeRequestsService, TimeTrackingService, ZoomService
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#group ⇒ Object
Returns the value of attribute group.
-
#noteable ⇒ Object
readonly
Returns the value of attribute noteable.
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(container: nil, noteable: nil, author: nil) ⇒ BaseService
constructor
A new instance of BaseService.
Constructor Details
#initialize(container: nil, noteable: nil, author: nil) ⇒ BaseService
Returns a new instance of BaseService.
8 9 10 11 12 13 14 |
# File 'app/services/system_notes/base_service.rb', line 8 def initialize(container: nil, noteable: nil, author: nil) @container = container @noteable = noteable @author = Gitlab::Auth::Identity.invert_composite_identity() handle_container_type(container) end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
6 7 8 |
# File 'app/services/system_notes/base_service.rb', line 6 def @author end |
#container ⇒ Object (readonly)
Returns the value of attribute container.
6 7 8 |
# File 'app/services/system_notes/base_service.rb', line 6 def container @container end |
#group ⇒ Object
Returns the value of attribute group.
5 6 7 |
# File 'app/services/system_notes/base_service.rb', line 5 def group @group end |
#noteable ⇒ Object (readonly)
Returns the value of attribute noteable.
6 7 8 |
# File 'app/services/system_notes/base_service.rb', line 6 def noteable @noteable end |
#project ⇒ Object
Returns the value of attribute project.
5 6 7 |
# File 'app/services/system_notes/base_service.rb', line 5 def project @project end |