Class: ChatNames::FindUserService

Inherits:
Object
  • Object
show all
Defined in:
app/services/chat_names/find_user_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(integration, params) ⇒ FindUserService

Returns a new instance of FindUserService.


5
6
7
8
# File 'app/services/chat_names/find_user_service.rb', line 5

def initialize(integration, params)
  @integration = integration
  @params = params
end

Instance Method Details

#executeObject


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

def execute
  chat_name = find_chat_name
  return unless chat_name

  chat_name.update_last_used_at
  chat_name
end