Class: Fog::Compute::DigitalOcean::PagingCollection
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::DigitalOcean::PagingCollection
show all
- Defined in:
- lib/fog/compute/digitalocean/models/paging_collection.rb
Instance Method Summary
collapse
Instance Method Details
#next_page ⇒ Object
9
10
11
|
# File 'lib/fog/compute/digitalocean/models/paging_collection.rb', line 9
def next_page
all(page: @next) if @next != @last
end
|
#previous_page ⇒ Object
13
14
15
16
17
|
# File 'lib/fog/compute/digitalocean/models/paging_collection.rb', line 13
def previous_page
if @next.to_i > 2
all(page: @next.to_i - 2)
end
end
|