Method: HelloSign::Client#put

Defined in:
lib/hello_sign/client.rb

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

Makes an HTTP PUT request

Parameters:

  • path (String)

    Relative path of the request.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • params (Hash)

    Params of the URL.

  • body (Hash)

    Body of the request.



115
116
117
118
119
120
# File 'lib/hello_sign/client.rb', line 115

def put(path, options={})
  response = request(path, :put, options)
  validate response
  responsed_response = parse response
  data = { headers: response.headers, body: parsed_response }
end