Sha256: 0c4fb9d64b0a0de39e7d25ca09bbf8863199de83f8151de0037991869123766f
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
require 'active_support/json' module OldApiResource module Formats module JsonFormat extend self def extension "json" end def mime_type "application/json" end def encode(hash, options = nil) ActiveSupport::JSON.encode(hash, options) end def decode(json) ActiveSupport::JSON.decode(json) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
old_api_resource-0.3.0 | lib/old_api_resource/formats/json_format.rb |