Class: Orb::Models::PaginationMetadata

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/pagination_metadata.rb,
sig/orb/models/pagination_metadata.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::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 Internal::Type::Converter

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

Methods included from Internal::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/models/pagination_metadata.rb', line 16

Instance Attribute Details

#has_moreBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


9
# File 'lib/orb/models/pagination_metadata.rb', line 9

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

#next_cursorString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


14
# File 'lib/orb/models/pagination_metadata.rb', line 14

required :next_cursor, String, nil?: true

Instance Method Details

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

Returns:

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


12
# File 'sig/orb/models/pagination_metadata.rbs', line 12

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