13 lines
260 B
Ruby
13 lines
260 B
Ruby
module MastodonManager
|
|
class FetchUser < MastodonManagerService
|
|
def initialize(mastodon_id:)
|
|
@mastodon_id = mastodon_id
|
|
end
|
|
|
|
def call
|
|
user = get "v1/admin/accounts/#{@mastodon_id}"
|
|
user.with_indifferent_access
|
|
end
|
|
end
|
|
end
|