Class: EPC::Client::HttpClient
Instance Method Summary
collapse
-
#delete(path, body, content_type = nil) ⇒ Object
-
#get(path, content_type = nil, skip_signature = false) ⇒ Object
-
#post(path, body, content_type = nil, headers = {}, skip_signature = false) ⇒ Object
-
#put(path, body, content_type = nil) ⇒ Object
Methods inherited from BaseClient
#initialize, #request
Instance Method Details
#delete(path, body, content_type = nil) ⇒ Object
15
16
17
|
# File 'lib/epc/client/http_client.rb', line 15
def delete(path, body, content_type = nil)
request(:delete, path, content_type, body)
end
|
#get(path, content_type = nil, skip_signature = false) ⇒ Object
3
4
5
|
# File 'lib/epc/client/http_client.rb', line 3
def get(path, content_type = nil, skip_signature = false)
request(:get, path, content_type, nil, {}, skip_signature)
end
|
#post(path, body, content_type = nil, headers = {}, skip_signature = false) ⇒ Object
7
8
9
|
# File 'lib/epc/client/http_client.rb', line 7
def post(path, body, content_type = nil, = {}, skip_signature = false)
request(:post, path, content_type, body, , skip_signature)
end
|
#put(path, body, content_type = nil) ⇒ Object
11
12
13
|
# File 'lib/epc/client/http_client.rb', line 11
def put(path, body, content_type = nil)
request(:put, path, content_type, body)
end
|