Method: Kennel::Api#update
- Defined in:
- lib/kennel/api.rb
#update(api_resource, id, attributes) ⇒ Object
45 46 47 48 49 |
# File 'lib/kennel/api.rb', line 45 def update(api_resource, id, attributes) response = request :put, "/api/v1/#{api_resource}/#{id}", body: attributes response[:id] = response.delete(:public_id) if api_resource == "synthetics/tests" response end |