Sha256: 5e1b5fe11c95f4dfb7989c21d7e7c51c9b37d2a0a585d9250715757e1d091752
Contents?: true
Size: 767 Bytes
Versions: 6
Compression:
Stored size: 767 Bytes
Contents
module StatRaptor class Client module Adapters module RestClient def self.request_api_response(method, path, params = {}) params.merge!(:platform_credentials => StatRaptor.platform_credentials) verify_ssl = StatRaptor.disable_ssl_peer_verification ? false : true url = StatRaptor.full_uri(path) options = { :url => url, :method => method, :payload => params, :verify_ssl => StatRaptor.disable_ssl_peer_verification, :timeout => StatRaptor.timeout_in_seconds, :headers => Config::HTTP_HEADERS } ::RestClient::Request.execute(options){|response, request, result| response } end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems