Class: ChatNames::FindUserService
- Inherits:
-
Object
- Object
- ChatNames::FindUserService
- Defined in:
- app/services/chat_names/find_user_service.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(team_id, user_id) ⇒ FindUserService
constructor
A new instance of FindUserService.
Constructor Details
#initialize(team_id, user_id) ⇒ FindUserService
Returns a new instance of FindUserService.
5 6 7 8 |
# File 'app/services/chat_names/find_user_service.rb', line 5 def initialize(team_id, user_id) @team_id = team_id @user_id = user_id end |
Instance Method Details
#execute ⇒ Object
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 |