Class: Telnyx::Internal::CursorFlatPagination::Meta

Inherits:
Type::BaseModel show all
Defined in:
lib/telnyx/internal/cursor_flat_pagination.rb,
sig/telnyx/internal/cursor_flat_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(cursor: nil, has_more: nil) ⇒ Meta

Returns a new instance of Meta.

Parameters:

  • cursor (String) (defaults to: nil)
  • has_more (Boolean) (defaults to: nil)
  • cursor: (String) (defaults to: nil)
  • has_more: (Boolean) (defaults to: nil)


# File 'lib/telnyx/internal/cursor_flat_pagination.rb', line 100

Instance Attribute Details

#cursorString?

Parameters:

  • (String)

Returns:

  • (String, nil)


93
# File 'lib/telnyx/internal/cursor_flat_pagination.rb', line 93

optional :cursor, String

#has_moreBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


98
# File 'lib/telnyx/internal/cursor_flat_pagination.rb', line 98

optional :has_more, Telnyx::Internal::Type::Boolean

Instance Method Details

#to_hash{ cursor: String, has_more: bool }

Returns:

  • ({ cursor: String, has_more: bool })


24
# File 'sig/telnyx/internal/cursor_flat_pagination.rbs', line 24

def to_hash: -> { cursor: String, has_more: bool }