Class: Members::InviteService

Inherits:
CreateService show all
Extended by:
Gitlab::Utils::Override
Defined in:
app/services/members/invite_service.rb

Constant Summary

Constants inherited from CreateService

CreateService::BlankInvitesError, CreateService::DEFAULT_INVITE_LIMIT, CreateService::MembershipLockedError, CreateService::TooManyInvitesError

Instance Attribute Summary

Attributes inherited from CreateService

#membership_locked

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from CreateService

#execute, #single_member

Methods inherited from BaseService

#after_execute

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?

Constructor Details

#initialize(*args) ⇒ InviteService

Returns a new instance of InviteService.



7
8
9
10
11
12
13
# File 'app/services/members/invite_service.rb', line 7

def initialize(*args)
  super

  @invites += parsed_emails

  @errors = {}
end