Class: BigMarkerClient::HttpClient

Inherits:
Object
  • Object
show all
Defined in:
lib/big_marker_client/http_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHttpClient

Returns a new instance of HttpClient.



5
6
7
8
9
10
# File 'lib/big_marker_client/http_client.rb', line 5

def initialize
  @connection = Faraday.new(url: Config.base_url) do |faraday|
    faraday = headers(faraday)
    configure_logging(faraday) if Config.log
  end
end

Instance Attribute Details

#connectionObject (readonly)

Returns the value of attribute connection.



3
4
5
# File 'lib/big_marker_client/http_client.rb', line 3

def connection
  @connection
end