Class: PactBroker::Dataset::Page
- Inherits:
-
Array
- Object
- Array
- PactBroker::Dataset::Page
- Extended by:
- Forwardable
- Defined in:
- lib/pact_broker/dataset/page.rb
Constant Summary collapse
- 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]
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(array, query) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(array, query) ⇒ Page
Returns a new instance of Page.
16 17 18 19 |
# File 'lib/pact_broker/dataset/page.rb', line 16 def initialize(array, query) super(array) @query = query end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
10 11 12 |
# File 'lib/pact_broker/dataset/page.rb', line 10 def query @query end |