lib/jamf/api/mixins/change_log.rb
def next_page_of_change_log
      case @change_log_page
      when :first
        @change_log_page = 0
      when Integer
        @change_log_page += 1
      else
        # if here, we haven't initiated a paged request, or
        # all pages have already been delivered
        return []
      end

      raw = @change_log_paged_cnx.get "#{change_log_rsrc}?page=#{@change_log_page}&page-size=#{@change_log_page_size}#{@change_log_sort}#{@change_log_filter}"

      @change_log_paged_fetched_count += raw[:results].size
      @change_log_paged_total_count = raw[:totalCount]

      # did we get the last of them in the this page?
      # if so, clear all the paging data
      clear_change_log_paging_data if @change_log_paged_fetched_count >= @change_log_paged_total_count

      # return the page results
      raw[:results].map { |le| Jamf::ChangeLogEntry.new le }
    end
# Fetch the next page of a paged #change_log request
# Returns an empty array if there's been no paged request
# or if the last one has no more pages.
#
# @return [Array<Jamf::ChangeHistoryEntry>] The next page of the change
#   and note history for this resource
#
Fetch the next page of a paged #change_log request
Returns an empty array if there's been no paged request
or if the last one has no more pages.
Fetch the next page of a paged #change_log request Returns an empty array if there ' s been no paged request or if the last one has no more pages .
def next_page_of_change_log
      case @change_log_page
      when :first
        @change_log_page = 0
      when Integer
        @change_log_page += 1
      else
        return []
      end
      raw = @change_log_paged_cnx.get "#{change_log_rsrc}?page=#{@change_log_page}&page-size=#{@change_log_page_size}#{@change_log_sort}#{@change_log_filter}"
      @change_log_paged_fetched_count += raw[:results].size
      @change_log_paged_total_count = raw[:totalCount]
      clear_change_log_paging_data if @change_log_paged_fetched_count >= @change_log_paged_total_count
      raw[:results].map { |le| Jamf::ChangeLogEntry.new le }
    end
def next_page_of_change_log case @change_log_page when :first @change_log_page = 0 when Integer @change_log_page += 1 else return [ ] end raw = @change_log_paged_cnx . get "#{change_log_rsrc}?page=#{@change_log_page}&page-size=#{@change_log_page_size}#{@change_log_sort}#{@change_log_filter}" @change_log_paged_fetched_count += raw [ :results ] . size @change_log_paged_total_count = raw [ :totalCount ] clear_change_log_paging_data if @change_log_paged_fetched_count >= @change_log_paged_total_count raw [ :results ] . map { | le | Jamf :: ChangeLogEntry . new le } end
Fetch the next page of a paged #change_log request
Returns an empty array if there's been no paged request
or if the last one has no more pages.
Fetch the next page of a paged #change_log request Returns an empty array if there ' s been no paged request or if the last one has no more pages .
# if here, we haven't initiated a paged request, or # all pages have already been delivered # did we get the last of them in the this page? # if so, clear all the paging data # return the page results
The next page of the change and note history for this resource
The next page of the change and note history for this resource
Array<Jamf::ChangeHistoryEntry>