Module: GarageClient::Request

Included in:
Client
Defined in:
lib/garage_client/request.rb,
lib/garage_client/request/json_encoded.rb,
lib/garage_client/request/propagate_request_id.rb

Defined Under Namespace

Classes: JsonEncoded, PropagateRequestId

Constant Summary collapse

MIME_DICT =
'application/vnd.cookpad.dictionary+json'

Instance Method Summary collapse

Instance Method Details

#delete(path, options = {}) ⇒ Object



17
18
19
# File 'lib/garage_client/request.rb', line 17

def delete(path, options = {})
  request(:delete, path, options)
end

#get(path, params = nil, options = {}) ⇒ Object



5
6
7
# File 'lib/garage_client/request.rb', line 5

def get(path, params = nil, options = {})
  request(:get, path, params, nil, options)
end

#post(path, body = nil, options = {}) ⇒ Object



9
10
11
# File 'lib/garage_client/request.rb', line 9

def post(path, body = nil, options = {})
  request(:post, path, {}, body, options)
end

#put(path, body = nil, options = {}) ⇒ Object



13
14
15
# File 'lib/garage_client/request.rb', line 13

def put(path, body = nil, options = {})
  request(:put, path, {}, body, options)
end