Module: XeroGateway::Http

Included in:
Gateway
Defined in:
lib/xero_gateway/http.rb

Constant Summary collapse

OPEN_TIMEOUT =
10
READ_TIMEOUT =
60
ROOT_CA_FILE =
File.join(File.dirname(__FILE__), 'ca-certificates.crt')

Instance Method Summary collapse

Instance Method Details

#http_get(client, url, extra_params = {}) ⇒ Object



7
8
9
# File 'lib/xero_gateway/http.rb', line 7

def http_get(client, url, extra_params = {})
  http_request(client, :get, url, nil, extra_params)
end

#http_post(client, url, body, extra_params = {}) ⇒ Object



11
12
13
# File 'lib/xero_gateway/http.rb', line 11

def http_post(client, url, body, extra_params = {})
  http_request(client, :post, url, body, extra_params)
end

#http_put(client, url, body, extra_params = {}) ⇒ Object



15
16
17
# File 'lib/xero_gateway/http.rb', line 15

def http_put(client, url, body, extra_params = {})
  http_request(client, :put, url, body, extra_params)
end