trusona/trusona-server-sdk-ruby

View on GitHub
lib/trusona/services/user_accounts_service.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Trusona
  module Services
    #
    ## User Accounts Service
    class UserAccountsService < BaseService
      def initialize(client: nil, mapper: nil)
        @client = client || Trusona::Api::HTTPClient.new(
          Trusona.config.api_host
        )
        super()
        @mapper = mapper || Trusona::Mappers::UserAccountMapper.new
        @resource_path = '/internal/v1/users'
      end
    end
  end
end