Class: Animoto::HTTPEngines::CurlAdapter
- Defined in:
- lib/animoto/http_engines/curl_adapter.rb
Instance Method Summary collapse
Instance Method Details
#request(method, url, body = nil, headers = {}, options = {}) ⇒ String
8 9 10 11 12 |
# File 'lib/animoto/http_engines/curl_adapter.rb', line 8 def request method, url, body = nil, headers = {}, = {} curl = build_curl method, url, body, headers, perform curl, method, body [curl.response_code, curl.body_str] end |