Sha256: 26a98b5cc9587a607b6df4a1b48a583da8720648b032b1b00283c10c3150d68b
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true require 'faraday' module BitBucket class Response::Xmlize < Response dependency 'nokogiri' define_parser do |body| ::Nokogiri::XML 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::Xmlize end # BitBucket
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitbuckets-0.2.0 | lib/bitbucket_rest_api/response/xmlize.rb |