Sha256: 81233ae88f2401b6b3e820c26e9e891dbb22c4f68f02e312cb36c9106adcdf04
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
# encoding: utf-8 require 'faraday' require 'nokogiri' module Github 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 # Github
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_api2-1.0.1 | lib/github_api2/response/xmlize.rb |
github_api2-1.0.0 | lib/github_api2/response/xmlize.rb |