Class: InfaktApiClient::Client
- Inherits:
-
Object
- Object
- InfaktApiClient::Client
- Defined in:
- lib/infakt_api_client/client.rb
Overview
Client class for interacting with the inFakt API Manages HTTP communication and authentication with the API endpoints
Constant Summary collapse
- HTTP_OK =
Add HTTP status constants for better readability
200
- HTTP_UNAUTHORIZED =
401
- HTTP_NOT_FOUND =
404
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #user_details ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 |
# File 'lib/infakt_api_client/client.rb', line 12 def initialize @connection = Faraday.new(url: InfaktApiClient.configuration.api_endpoint) do |faraday| configure_connection(faraday) end end |