Class: BitBucket::Response::Xmlize
- Inherits:
-
BitBucket::Response
- Object
- Faraday::Response::Middleware
- BitBucket::Response
- BitBucket::Response::Xmlize
- Defined in:
- lib/bitbucket_rest_api/response/xmlize.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
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/bitbucket_rest_api/response/xmlize.rb', line 13 def parse(body) case body when '' nil when 'true' true when 'false' false else self.class.parser.call body end end |