Sha256: b99a478fad02e8d280d47e6f5c61407dbb1b0282464ba5937ba2198f7ad61518
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
# encoding: utf-8 require 'faraday' module Github class Response::Jsonize < Response dependency 'multi_json' define_parser do |body| ::MultiJson.load body end def parse(body) case body when '' nil when 'true' true when 'false' false else self.class.parser.call body end end end # Response::Jsonize end # Github
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.5.0.rc1 | lib/github_api/response/jsonize.rb |
github_api-0.4.11 | lib/github_api/response/jsonize.rb |