class Kentico::Kontent::Delivery::Pagination

Holds pagination data from listing responses

Attributes

count[RW]
limit[RW]
next_page[RW]
skip[RW]
total_count[RW]

Public Class Methods

new(json) click to toggle source

Constructor.

  • Args:

    • json (JSON) The 'pagination' node of a listing reponse's JSON object

# File lib/delivery/models/pagination.rb, line 12
def initialize(json)
  self.skip = json['skip']
  self.limit = json['limit']
  self.count = json['count']
  self.next_page = json['next_page']
  self.total_count = json['total_count']
end