Sha256: a20fb5c9f92ac3a5661ea23868be86b13a51d6231c6d361929971fab831a981b
Contents?: true
Size: 543 Bytes
Versions: 9
Compression:
Stored size: 543 Bytes
Contents
require "forwardable" # An array that provides the pagination details module PactBroker module Dataset class Page < Array extend Forwardable attr_reader :query PAGE_PROPERTIES = [:page_size, :page_count, :page_range, :current_page, :next_page, :prev_page, :first_page?, :last_page?, :pagination_record_count, :current_page_record_count, :current_page_record_range] delegate PAGE_PROPERTIES => :query def initialize(array, query) super(array) @query = query end end end end
Version data entries
9 entries across 9 versions & 1 rubygems