Sha256: 0401258e95b36a935d897939be55d9b327733a4f02d721a4572a6b92153cdfa0
Contents?: true
Size: 283 Bytes
Versions: 4
Compression:
Stored size: 283 Bytes
Contents
require 'faraday_middleware/response_middleware' module Hull::Response class ParseJson < FaradayMiddleware::ResponseMiddleware dependency do require 'multi_json' end define_parser do |body| MultiJson.load body unless body.strip.empty? end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hullio-0.4.0 | lib/hull/response/parse_json.rb |
hullio-0.3.3 | lib/hull/response/parse_json.rb |
hullio-0.3.2 | lib/hull/response/parse_json.rb |
hullio-0.3.1 | lib/hull/response/parse_json.rb |