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

Inherits:
Type::BaseModel show all
Defined in:
lib/surge_api/internal/cursor.rb,
sig/surge_api/internal/cursor.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(next_cursor: nil, previous_cursor: nil) ⇒ Pagination

Returns a new instance of Pagination.

Parameters:

  • next_cursor (String) (defaults to: nil)
  • previous_cursor (String) (defaults to: nil)
  • 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?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :next_cursor, String

#previous_cursorString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :previous_cursor, String

Instance Method Details

#to_hash{ next_cursor: String, previous_cursor: String }

Returns:

  • ({ next_cursor: String, previous_cursor: String })


24
# File 'sig/surge_api/internal/cursor.rbs', line 24

def to_hash: -> { next_cursor: String, previous_cursor: String }