Class: BigMarkerClient::HttpClient
- Inherits:
-
Object
- Object
- BigMarkerClient::HttpClient
- Defined in:
- lib/big_marker_client/http_client.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize ⇒ HttpClient
constructor
A new instance of HttpClient.
Constructor Details
#initialize ⇒ HttpClient
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
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
3 4 5 |
# File 'lib/big_marker_client/http_client.rb', line 3 def connection @connection end |