Method: BooticClient::Client#put
- Defined in:
- lib/bootic_client/client.rb
#put(href, payload = {}, headers = {}) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/bootic_client/client.rb', line 42 def put(href, payload = {}, headers = {}) validated_request!(:put, href) do |req| req.headers.update headers req.body = JSON.dump(sanitized(payload)) end end |