Module: Glassfrog::REST::Patch
- Defined in:
- lib/glassfrog/rest/patch.rb
Overview
Encapsulates all PATCH requests.
Class Method Summary collapse
-
.formify(options, type) ⇒ Hash
Turns options into PATCH form.
-
.patch(client, path, options) ⇒ Boolean
Sends a PATCH request.
Class Method Details
.formify(options, type) ⇒ Hash
Turns options into PATCH form.
26 27 28 29 30 31 32 |
# File 'lib/glassfrog/rest/patch.rb', line 26 def self.formify(, type) .keys.map do |key| { op: 'replace', path: type::PATH + '/0/' + key.to_s, value: [key] } end end |