Class: Octokit::Response::FeedParser
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
BaseMiddleware
|
|
Instance Chain:
self,
BaseMiddleware
|
|
Inherits: |
BaseMiddleware
|
Defined in: | lib/octokit/response/feed_parser.rb |
Overview
Parses RSS and Atom feed responses.
Instance Method Summary
Instance Method Details
#on_complete(env)
[ GitHub ]# File 'lib/octokit/response/feed_parser.rb', line 9
def on_complete(env) if env[:response_headers]['content-type'] =~ /(\batom|\brss)/ require 'rss' env[:body] = RSS::Parser.parse env[:body] end end