Class: Autorender::Internal::PagePagination::Meta

Inherits:
Type::BaseModel show all
Defined in:
lib/autorender/internal/page_pagination.rb,
sig/autorender/internal/page_pagination.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(has_next: nil, page: nil) ⇒ Meta

Returns a new instance of Meta.

Parameters:

  • has_next (Boolean) (defaults to: nil)
  • page (Integer) (defaults to: nil)
  • has_next: (Boolean) (defaults to: nil)
  • page: (Integer) (defaults to: nil)


# File 'lib/autorender/internal/page_pagination.rb', line 103

Instance Attribute Details

#has_nextBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


96
# File 'lib/autorender/internal/page_pagination.rb', line 96

optional :has_next, Autorender::Internal::Type::Boolean, api_name: :hasNext

#pageInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


101
# File 'lib/autorender/internal/page_pagination.rb', line 101

optional :page, Integer

Instance Method Details

#to_hash{ has_next: bool, page: Integer }

Returns:

  • ({ has_next: bool, page: Integer })


24
# File 'sig/autorender/internal/page_pagination.rbs', line 24

def to_hash: -> { has_next: bool, page: Integer }