struct

Hwaro::Content::Pagination::PaginatedPage

Inherits Struct / Value / Object

Represents a single page in a paginated result set

Constructors

new(pages : Array(Models::Page), page_number : Int32, total_pages : Int32, per_page : Int32, total_items : Int32, has_prev : Bool, has_next : Bool, prev_url : String | Nil, next_url : String | Nil, first_url : String, last_url : String, base_url : String)
Source

Instance methods

base_url
Source
base_url=(base_url : String)
Source
first_url
Source
first_url=(first_url : String)
Source
has_next
Source
has_next=(has_next : Bool)
Source
has_prev
Source
has_prev=(has_prev : Bool)
Source
last_url
Source
last_url=(last_url : String)
Source
next_url
Source
next_url=(next_url : String | Nil)
Source
page_number
Source
page_number=(page_number : Int32)
Source
pages
Source
pages=(pages : Array(Models::Page))
Source
per_page
Source
per_page=(per_page : Int32)
Source
prev_url
Source
prev_url=(prev_url : String | Nil)
Source
total_items
Source
total_items=(total_items : Int32)
Source
total_pages
Source
total_pages=(total_pages : Int32)
Source