Sha256: 0905c50a2d333731cd21b1d12d3d333a6b9ae8cfef39919300fd5303799e9688
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
# encoding: utf-8 require 'faraday' require 'json' module Github class Response::Jsonize < Response # dependency 'json' define_parser do |body| JSON.parse(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_api2-1.0.1 | lib/github_api2/response/jsonize.rb |
github_api2-1.0.0 | lib/github_api2/response/jsonize.rb |