trusona/trusona-server-sdk-ruby

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

Summary

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

module Trusona
  module Services
    #
    ## User Accounts Service
    class AccountLookupsService < BaseService
      def initialize(client: nil, mapper: nil)
        super()

        @client = client || Trusona::Api::HTTPClient.new(
          Trusona.config.api_host
        )
        @mapper = mapper || Trusona::Mappers::UserAccountMapper.new
        @resource_path = '/internal/v1/account_lookups'
      end
    end
  end
end