new framework
This commit is contained in:
8
lib/service/profile_service.rb
Normal file
8
lib/service/profile_service.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ProfileService
|
||||
def initialize(repo) = @repo = repo
|
||||
|
||||
def find(username) = @repo.find(username)
|
||||
def update(username, **f) = @repo.upsert(username: username, **f)
|
||||
end
|
||||
Reference in New Issue
Block a user