Sha256: 97c0e1ad34b1bbf78dc4dd48a8f0337c73699fd0523bf12e324522e3bc32a221
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require "plate_api/request" module PlateApi class PutRequest < Request def initialize(public_key, secret, path, parameters={}, custom_server=nil) super(public_key, secret, "PUT", path, custom_server) @put_parameters = parameters.to_json end def extra_request_options(request) request.headers['Content-Type'] = 'application/json' request.body = @put_parameters end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plate_api-0.4.0 | lib/plate_api/put_request.rb |