Class: EPC::Client::HttpClient

Inherits:
BaseClient show all
Defined in:
lib/epc/client/http_client.rb

Direct Known Subclasses

JsonClient

Instance Method Summary collapse

Methods inherited from BaseClient

#initialize, #request

Constructor Details

This class inherits a constructor from EPC::Client::BaseClient

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, headers = {}, skip_signature = false)
  request(:post, path, content_type, body, headers, 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