Class: Hexabat::PageResponseProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/hexabat/page_response_processor.rb

Instance Method Summary collapse

Constructor Details

#initialize(repository, issue_callback, errback) ⇒ PageResponseProcessor

Returns a new instance of PageResponseProcessor.



6
7
8
9
10
# File 'lib/hexabat/page_response_processor.rb', line 6

def initialize(repository, issue_callback, errback)
  @repository = repository
  @issue_callback = issue_callback
  @errback = errback
end

Instance Method Details

#process(http, &page_callback) ⇒ Object



12
13
14
15
# File 'lib/hexabat/page_response_processor.rb', line 12

def process(http, &page_callback)
  check_for_errors(http)
  process_response(http.response_header, http.response, page_callback)
end