Class: ChatNames::AuthorizeUserService

Inherits:
Object
  • Object
show all
Includes:
Gitlab::Routing
Defined in:
app/services/chat_names/authorize_user_service.rb

Instance Method Summary collapse

Methods included from Gitlab::Routing

includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

#initialize(params) ⇒ AuthorizeUserService

Returns a new instance of AuthorizeUserService.



7
8
9
# File 'app/services/chat_names/authorize_user_service.rb', line 7

def initialize(params)
  @params = params
end

Instance Method Details

#executeObject



11
12
13
14
15
16
17
# File 'app/services/chat_names/authorize_user_service.rb', line 11

def execute
  return unless chat_name_params.values.all?(&:present?)

  token = request_token

  new_profile_chat_name_url(token: token) if token
end