Class: Fog::Compute::Gridscale::PagingCollection
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Gridscale::PagingCollection
show all
- Defined in:
- lib/fog/compute/gridscale/models/paging_collection.rb
Direct Known Subclasses
AccessKeys, Buckets, Cass, DeletedIps, DeletedNetworks, DeletedServers, DeletedSnapshots, DeletedStorages, DeletedeTemplates, Firewalls, Interfaces, Ips, Isoimages, Loadbalancers, Locations, MarketplaceTemplates, Networks, PaasSecurityZones, PaasServices, Requests, ServerRelationIps, ServerRelationIsoimages, ServerRelationNetworks, ServerRelationStorages, Servers, SnapshotSchedules, Snapshots, Sshkeys, Storages, Templates
Instance Method Summary
collapse
Instance Method Details
#next_page ⇒ Object
9
10
11
|
# File 'lib/fog/compute/gridscale/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/gridscale/models/paging_collection.rb', line 13
def previous_page
if @next.to_i > 2
all(page: @next.to_i - 2)
end
end
|