Class: Organizations::BaseService

Inherits:
Object
  • Object
show all
Includes:
BaseServiceUtility
Defined in:
app/services/organizations/base_service.rb

Direct Known Subclasses

CreateService, UpdateService

Instance Method Summary collapse

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

#can?, #can_all?, #can_any?

Constructor Details

#initialize(current_user: nil, params: {}) ⇒ BaseService

Returns a new instance of BaseService.



7
8
9
10
11
12
# File 'app/services/organizations/base_service.rb', line 7

def initialize(current_user: nil, params: {})
  @current_user = current_user
  @params = params.dup

  build_organization_detail_attributes
end