Class: Cadenya::Models::Page

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/page.rb,
sig/cadenya/models/page.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(next_cursor: nil) ⇒ Page

Page carries cursor-based pagination state. There is no total: the cursor walks the result set without ever counting it, and a count would cost a second query on every list.

Parameters:

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


# File 'lib/cadenya/models/page.rb', line 11

Instance Attribute Details

#next_cursorString?

Parameters:

  • (String)

Returns:

  • (String, nil)


9
# File 'lib/cadenya/models/page.rb', line 9

optional :next_cursor, String, api_name: :nextCursor

Instance Method Details

#to_hash{ next_cursor: String }

Returns:

  • ({ next_cursor: String })


12
# File 'sig/cadenya/models/page.rbs', line 12

def to_hash: -> { next_cursor: String }