Class: WorkItems::Widgets::BaseService
- Inherits:
-
BaseService
- Object
- BaseService
- WorkItems::Widgets::BaseService
- Defined in:
- app/services/work_items/widgets/base_service.rb
Direct Known Subclasses
AssigneesService::UpdateService, CurrentUserTodosService::UpdateService, DescriptionService::UpdateService, HierarchyService::BaseService, LabelsService::UpdateService, NotificationsService::UpdateService, StartAndDueDateService::UpdateService
Constant Summary collapse
- WidgetError =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#service_params ⇒ Object
readonly
Returns the value of attribute service_params.
-
#widget ⇒ Object
readonly
Returns the value of attribute widget.
-
#work_item ⇒ Object
readonly
Returns the value of attribute work_item.
Attributes inherited from BaseService
Instance Method Summary collapse
-
#initialize(widget:, current_user:, service_params: {}) ⇒ BaseService
constructor
A new instance of BaseService.
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(widget:, current_user:, service_params: {}) ⇒ BaseService
Returns a new instance of BaseService.
10 11 12 13 14 15 |
# File 'app/services/work_items/widgets/base_service.rb', line 10 def initialize(widget:, current_user:, service_params: {}) @widget = @work_item = .work_item @current_user = current_user @service_params = service_params end |
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
8 9 10 |
# File 'app/services/work_items/widgets/base_service.rb', line 8 def current_user @current_user end |
#service_params ⇒ Object (readonly)
Returns the value of attribute service_params.
8 9 10 |
# File 'app/services/work_items/widgets/base_service.rb', line 8 def service_params @service_params end |
#widget ⇒ Object (readonly)
Returns the value of attribute widget.
8 9 10 |
# File 'app/services/work_items/widgets/base_service.rb', line 8 def @widget end |
#work_item ⇒ Object (readonly)
Returns the value of attribute work_item.
8 9 10 |
# File 'app/services/work_items/widgets/base_service.rb', line 8 def work_item @work_item end |