Class: CoPilot::Pager
- Inherits:
-
Object
- Object
- CoPilot::Pager
- Defined in:
- lib/copilot/requests/internal/pager.rb
Instance Method Summary collapse
-
#initialize(browser) ⇒ Pager
constructor
A new instance of Pager.
- #next_page ⇒ Object
Constructor Details
#initialize(browser) ⇒ Pager
Returns a new instance of Pager.
4 5 6 |
# File 'lib/copilot/requests/internal/pager.rb', line 4 def initialize(browser) @browser = browser end |
Instance Method Details
#next_page ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/copilot/requests/internal/pager.rb', line 8 def next_page link = next_page_link return false unless link link.click sleep 1 true end |