Class: ChatNames::AuthorizeUserService
- Inherits:
-
Object
- Object
- ChatNames::AuthorizeUserService
- Includes:
- Gitlab::Routing
- Defined in:
- app/services/chat_names/authorize_user_service.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(params) ⇒ AuthorizeUserService
constructor
A new instance of AuthorizeUserService.
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
#execute ⇒ Object
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 |