A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://rubydoc.info/github/piotrmurach/github/master/Github/Response/AtomParser below:

AtomParser – Documentation for piotrmurach/github (master) – RubyDoc.info

Class: Github::Response::AtomParser Constant Summary Constants inherited from Github::Response

CONTENT_TYPE

Instance Method Summary collapse 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_api/response/atom_parser.rb', line 12

def initialize(app, options = {})
  super(app, options.merge(content_type: /(\batom|\brss)/))
end
Instance Method Details #on_complete(env) ⇒ Object
16
17
18
19
20
# File 'lib/github_api/response/atom_parser.rb', line 16

def on_complete(env)
  if parse_body?(env)
    process_body(env)
  end
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4