Class: CoPilot::BuildsForBundleIdRequest

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

Instance Method Summary collapse

Constructor Details

#initialize(browser) ⇒ BuildsForBundleIdRequest


8
9
10
# File 'lib/copilot/requests/builds_for_bundle_id_request.rb', line 8

def initialize(browser)
  @browser = browser
end

Instance Method Details

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


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

def send(bundle_id, options={})
  @bundle_id = bundle_id
  @builds = []
  @builds_limiter = create_builds_limiter options
  @pager = Pager.new @browser
  go_to_builds_page
  add_builds_for_each_page
  @builds
end