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)
SourceInstance methods
base_url
Sourcebase_url=(base_url : String)
Sourcefirst_url
Sourcefirst_url=(first_url : String)
Sourcehas_next
Sourcehas_next=(has_next : Bool)
Sourcehas_prev
Sourcehas_prev=(has_prev : Bool)
Sourcelast_url
Sourcelast_url=(last_url : String)
Sourcenext_url
Sourcenext_url=(next_url : String | Nil)
Sourcepage_number
Sourcepage_number=(page_number : Int32)
Sourcepages
Sourcepages=(pages : Array(Models::Page))
Sourceper_page
Sourceper_page=(per_page : Int32)
Sourceprev_url
Sourceprev_url=(prev_url : String | Nil)
Sourcetotal_items
Sourcetotal_items=(total_items : Int32)
Sourcetotal_pages
Sourcetotal_pages=(total_pages : Int32)
Source