Class: SurgeAPI::Internal::Cursor::Pagination

Inherits:
Type::BaseModel show all
Defined in:
lib/surge_api/internal/cursor.rb

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(next_cursor: nil, previous_cursor: nil) ⇒ Object

Parameters:

  • next_cursor (String) (defaults to: nil)
  • previous_cursor (String) (defaults to: nil)


# File 'lib/surge_api/internal/cursor.rb', line 106

Instance Attribute Details

#next_cursorString?

Returns:

  • (String, nil)


99
# File 'lib/surge_api/internal/cursor.rb', line 99

optional :next_cursor, String

#previous_cursorString?

Returns:

  • (String, nil)


104
# File 'lib/surge_api/internal/cursor.rb', line 104

optional :previous_cursor, String