Class: Github::Response::AtomParser
- Inherits:
-
Github::Response
- Object
- Faraday::Response::Middleware
- Github::Response
- Github::Response::AtomParser
- Defined in:
- lib/github_api2/response/atom_parser.rb
Constant Summary
Constants inherited from Github::Response
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ AtomParser
constructor
A new instance of AtomParser.
- #on_complete(env) ⇒ Object
Methods inherited from Github::Response
define_parser, #parse_body?, #parse_response?, #parse_response_type?, #process_body, #response_type
Constructor Details
#initialize(app, options = {}) ⇒ AtomParser
Returns a new instance of AtomParser.
12 13 14 |
# File 'lib/github_api2/response/atom_parser.rb', line 12 def initialize(app, = {}) super(app, .merge(content_type: /(\batom|\brss)/)) end |
Instance Method Details
#on_complete(env) ⇒ Object
16 17 18 19 20 |
# File 'lib/github_api2/response/atom_parser.rb', line 16 def on_complete(env) if parse_body?(env) process_body(env) end end |