ryz310/my_api_client

View on GitHub
example/api_clients/application_api_client.rb

Summary

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

require_relative 'my_errors'

# An usage example of the `my_api_client`.
class ApplicationApiClient < MyApiClient::Base
  endpoint ENV.fetch('MY_API_ENDPOINT', nil)

  self.logger = ::Logger.new(nil)

  http_open_timeout 5.seconds
  http_read_timeout 5.seconds
end