Class: CoPilot::FeedbackForBuildIdRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/copilot/requests/feedback_for_build_id_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(browser) ⇒ FeedbackForBuildIdRequest

Returns a new instance of FeedbackForBuildIdRequest.



7
8
9
# File 'lib/copilot/requests/feedback_for_build_id_request.rb', line 7

def initialize(browser)
  @browser = browser
end

Instance Method Details

#send(build_id, options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/copilot/requests/feedback_for_build_id_request.rb', line 11

def send(build_id, options={})
  @feedback = []
  @feedback_limiter = create_feedback_limiter options
  @feedback_page = FeedbackPage.new @browser, build_id
  @pager = Pager.new @browser
  @feedback_page.goto
  add_feedback_for_each_page
  @feedback
end