Sha256: 028617ac92f39c78db6c01286051beb1388f4d378209125b54d193368d6ffc40
Contents?: true
Size: 302 Bytes
Versions: 2
Compression:
Stored size: 302 Bytes
Contents
require 'json' module Apitizer module Connection module Format class JSON def mime_type 'application/json' end def process(data) ::JSON.parse(data) rescue raise Error, 'Unable to parse' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apitizer-0.0.3 | lib/apitizer/connection/format/json.rb |
apitizer-0.0.2 | lib/apitizer/connection/format/json.rb |