Sha256: 64ade528d9e75823af6c9264ea5986392109990f64219655bd13046d74ad3e9e
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
require 'rest-client' require 'tester/definition/methods/api_method' class ApiPatch < ApiMethod def patch url, json_payload, headers RestClient.patch(url, json_payload, headers) { |real_response, request, result| real_response } end def call url, body_params={}, request_params={} patch url, body_params.to_json, request_params end def verb SupportedVerbs::PATCH end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.0.5 | lib/tester/definition/methods/api_patch.rb |