Class: WCC::API::RestClient::TyphoeusAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/wcc/api/rest_client/typhoeus_adapter.rb

Defined Under Namespace

Classes: Response

Instance Method Summary collapse

Instance Method Details

#call(url, query, headers = {}, proxy = {}) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/wcc/api/rest_client/typhoeus_adapter.rb', line 10

def call(url, query, headers = {}, proxy = {})
  raise NotImplementedError, 'Proxying Not Yet Implemented' if proxy[:host]

  TyphoeusAdapter::Response.new(
    Typhoeus.get(
      url,
      params: query,
      headers: headers
    )
  )
end