Sha256: ffd4e1d25e6c1e8d8aa4524e49dfc531e888fba39718b54d0a1375ee507979a0
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'restclient' module Animoto module HTTPEngines class RestClientAdapter < Animoto::HTTPEngines::Base # @return [String] def request method, url, body = nil, headers = {}, options = {} response = ::RestClient::Request.execute({ :method => method, :url => url, :headers => headers, :payload => body, :user => options[:username], :password => options[:password], :timeout => options[:timeout] }) check_response response.code, response.body response.body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
animoto-1.0.0 | ./lib/animoto/http_engines/rest_client_adapter.rb |