Class: JsonHttpConnection::Connection

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/json_http_connection/connection.rb

Overview

Permanent connection to a JSON HTTP Service using faraday and typhoeus

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Connection

Returns a new instance of Connection.



14
15
16
17
18
# File 'lib/json_http_connection/connection.rb', line 14

def initialize(config)
  @config = config

  super(faraday_connection)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



12
13
14
# File 'lib/json_http_connection/connection.rb', line 12

def config
  @config
end