Class: VitableConnect::Internal::PageNumberPage::Pagination

Inherits:
Type::BaseModel
  • Object
show all
Defined in:
lib/vitable_connect/internal/page_number_page.rb,
sig/vitable_connect/internal/page_number_page.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(page: nil, total_pages: nil) ⇒ Pagination

Returns a new instance of Pagination.

Parameters:

  • page (Integer) (defaults to: nil)
  • total_pages (Integer) (defaults to: nil)
  • page: (Integer) (defaults to: nil)
  • total_pages: (Integer) (defaults to: nil)


# File 'lib/vitable_connect/internal/page_number_page.rb', line 107

Instance Attribute Details

#pageInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


100
# File 'lib/vitable_connect/internal/page_number_page.rb', line 100

optional :page, Integer

#total_pagesInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


105
# File 'lib/vitable_connect/internal/page_number_page.rb', line 105

optional :total_pages, Integer

Instance Method Details

#to_hash{ page: Integer, total_pages: Integer }

Returns:

  • ({ page: Integer, total_pages: Integer })


24
# File 'sig/vitable_connect/internal/page_number_page.rbs', line 24

def to_hash: -> { page: Integer, total_pages: Integer }