Method: APIClientBuilder::APIClient#initialize

Defined in:
lib/api_client_builder/api_client.rb

#initialize(**opts) ⇒ APIClient

Returns a new instance of APIClient.

Parameters:

  • opts (Hash)

    options hash

Options Hash (**opts):

  • :http_client (Symbol)

    The http client handler

  • :paginator (Symbol)

    The response handler



11
12
13
14
# File 'lib/api_client_builder/api_client.rb', line 11

def initialize(**opts)
  @url_generator = APIClientBuilder::URLGenerator.new(opts[:domain])
  @http_client = opts[:http_client]
end