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