Sha256: 138c57a8924229d072558f352eeec3bc3047de5fa688de1b7fee7d2319b7e72d
Contents?: true
Size: 511 Bytes
Versions: 14
Compression:
Stored size: 511 Bytes
Contents
module ChartMogul module API module Actions module Update def update! resp = handling_errors do connection.patch("#{resource_path.apply(instance_attributes)}/#{uuid}") do |req| req.headers['Content-Type'] = 'application/json' req.body = JSON.dump(serialize_for_write) end end json = ChartMogul::Utils::JSONParser.parse(resp.body) assign_all_attributes(json) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems