Class: Orb::Internal::Page::PaginationMetadata

Inherits:
Type::BaseModel show all
Defined in:
lib/orb/internal/page.rb,
sig/orb/internal/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(has_more:, next_cursor:) ⇒ PaginationMetadata

Returns a new instance of PaginationMetadata.

Parameters:

  • has_more (Boolean)
  • next_cursor (String, nil)
  • has_more: (Boolean)
  • next_cursor: (String, nil)


# File 'lib/orb/internal/page.rb', line 104

Instance Attribute Details

#has_moreBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


97
# File 'lib/orb/internal/page.rb', line 97

required :has_more, Orb::Internal::Type::Boolean

#next_cursorString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


102
# File 'lib/orb/internal/page.rb', line 102

required :next_cursor, String, nil?: true

Instance Method Details

#to_hash{ has_more: bool, next_cursor: String? }

Returns:

  • ({ has_more: bool, next_cursor: String? })


20
# File 'sig/orb/internal/page.rbs', line 20

def to_hash: -> { has_more: bool, next_cursor: String? }