Sha256: 47fa271b2afda41de978c1f4d25269efbb029d76e80bef32e3c868be98462d10
Contents?: true
Size: 395 Bytes
Versions: 16
Compression:
Stored size: 395 Bytes
Contents
# encoding: utf-8 require 'faraday' module Github class Response::AtomParser < Response define_parser do |body| require 'rss' RSS::Parser.parse(body) end def initialize(app, options = {}) super(app, options.merge(content_type: /(\batom|\brss)/)) end def on_complete(env) if parse_body?(env) process_body(env) end end end end
Version data entries
16 entries across 16 versions & 3 rubygems