Sha256: c30e2d795cb880b4ead56f1ba9827499c779cf85442bd9c0be3bc039886c82a3
Contents?: true
Size: 327 Bytes
Versions: 3
Compression:
Stored size: 327 Bytes
Contents
require 'json' module ActionHook module Core class JSONRequest < Request def serialized_body return @serialized_body if @serialized_body if body.is_a?(Hash) || body.is_a?(Array) @serialized_body = JSON.generate(body) else super end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
actionhook-1.0.2 | lib/actionhook/core/json_request.rb |
actionhook-1.0.1 | lib/actionhook/core/json_request.rb |
actionhook-1.0.0 | lib/actionhook/core/json_request.rb |