Class: CoPilot::FeedbackForBuildIdRequest
- Inherits:
-
Object
- Object
- CoPilot::FeedbackForBuildIdRequest
- Defined in:
- lib/copilot/requests/feedback_for_build_id_request.rb
Instance Method Summary collapse
-
#initialize(browser) ⇒ FeedbackForBuildIdRequest
constructor
A new instance of FeedbackForBuildIdRequest.
- #send(build_id, options = {}) ⇒ Object
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, ={}) @feedback = [] @feedback_limiter = create_feedback_limiter @feedback_page = FeedbackPage.new @browser, build_id @pager = Pager.new @browser @feedback_page.goto add_feedback_for_each_page @feedback end |