Class: Authorizations::NotificationService
- Inherits:
-
Object
- Object
- Authorizations::NotificationService
- Includes:
- BaseServiceUtility
- Defined in:
- app/services/authorizations/notification_service.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
Instance Method Summary collapse
-
#execute ⇒ Object
EE would override and use ‘request` arg.
-
#initialize(current_user) ⇒ NotificationService
constructor
A new instance of NotificationService.
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
#initialize(current_user) ⇒ NotificationService
Returns a new instance of NotificationService.
9 10 11 |
# File 'app/services/authorizations/notification_service.rb', line 9 def initialize(current_user) @current_user = current_user end |
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
7 8 9 |
# File 'app/services/authorizations/notification_service.rb', line 7 def current_user @current_user end |
Instance Method Details
#execute ⇒ Object
EE would override and use ‘request` arg
14 15 16 |
# File 'app/services/authorizations/notification_service.rb', line 14 def execute notification_service.(current_user) end |