Class: Github::Response::Jsonize
- Inherits:
-
Github::Response
- Object
- Faraday::Response::Middleware
- Github::Response
- Github::Response::Jsonize
- Includes:
- Jsonable
- Defined in:
- lib/github_api/response/jsonize.rb
Constant Summary
Constants inherited from Github::Response
Instance Method Summary collapse
Methods included from Jsonable
Methods inherited from Github::Response
define_parser, #parse_response?, #response_type
Instance Method Details
#parse(body) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/github_api/response/jsonize.rb', line 16 def parse(body) case body when '' nil when 'true' true when 'false' false else self.class.parser.call body end end |