lib/jamf/api/mixins/pageable.rb
def first_collection_page(rsrc, page_size, sort, filter, cnx)
      page_size ||= DFT_PAGE_SIZE
      validate_page_params page_size

      @collection_rsrc_path = rsrc
      @collection_cnx = cnx
      @collection_page = :first
      @collection_page_size = page_size
      @collection_sort = sort
      @collection_filter = filter
      @collection_paged_fetched_count = 0

      next_collection_page
    end
# get the first page of a paged collection, and set up for
# getting later pages
#
# @param rsrc [String] The collection resource GET endpoint
#
# @param page_size [Integer] how many items per page
#
# @param sort [String,Array<String>] server-side sorting parameters
#
# @param filter [String] RSQL String limiting the result set
#
# @param cnx [Jamf::Connection] The API connection to use
#
# @return [Array<Object>] The first page of the collection for this resource
#
get the first page of a paged collection, and set up for
getting later pages
get the first page of a paged collection and set up for getting later pages
def first_collection_page(rsrc, page_size, sort, filter, cnx)
      page_size ||= DFT_PAGE_SIZE
      validate_page_params page_size
      @collection_rsrc_path = rsrc
      @collection_cnx = cnx
      @collection_page = :first
      @collection_page_size = page_size
      @collection_sort = sort
      @collection_filter = filter
      @collection_paged_fetched_count = 0
      next_collection_page
    end
def first_collection_page ( rsrc , page_size , sort , filter , cnx ) page_size ||= DFT_PAGE_SIZE validate_page_params page_size @collection_rsrc_path = rsrc @collection_cnx = cnx @collection_page = :first @collection_page_size = page_size @collection_sort = sort @collection_filter = filter @collection_paged_fetched_count = 0 next_collection_page end
get the first page of a paged collection, and set up for
getting later pages
get the first page of a paged collection and set up for getting later pages
The first page of the collection for this resource
The first page of the collection for this resource
Array<Object>
rsrc
The collection resource GET endpoint
The collection resource GET endpoint
page_size
None
sort
server-side sorting parameters
server - side sorting parameters
filter
RSQL String limiting the result set
RSQL String limiting the result set
cnx
The API connection to use
The API connection to use