class Lutaml::Hal::Page
for a collection of resources in the HAL format.
This class is used to represent the pagination information
Models the pagination of a collection of resources
def self.inherited(subclass)
def self.inherited(subclass) super page_links_symbols = %i[self next prev first last up] subclass_name = subclass.name subclass.class_eval do # Define common page links page_links_symbols.each do |link_symbol| hal_link link_symbol, key: link_symbol.to_s, realize_class: subclass_name end end end