Class: WCC::API::RestClient::TyphoeusAdapter
- Inherits:
-
Object
- Object
- WCC::API::RestClient::TyphoeusAdapter
- 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
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 |