Class: PactBroker::Dataset::Page

Inherits:
Array
  • Object
show all
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

Instance Method Summary collapse

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

#queryObject (readonly)

Returns the value of attribute query.



10
11
12
# File 'lib/pact_broker/dataset/page.rb', line 10

def query
  @query
end