code: def set_pagination_info(page_no, page_size, record_count)
        @current_page = page_no
        @per_page = page_size
        @total_count = record_count
        @total_pages = (record_count / page_size.to_f).ceil
      
        extend PaginationMethods
  
        self
      end
docs: Sets the pagination info