Class: Stigg::Internal::MyCursorIDPage::Pagination

Inherits:
Type::BaseModel show all
Defined in:
lib/stigg/internal/my_cursor_id_page.rb,
sig/stigg/internal/my_cursor_id_page.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_: nil, prev: nil) ⇒ Pagination

Returns a new instance of Pagination.

Parameters:

  • next_ (String) (defaults to: nil)
  • prev (String) (defaults to: nil)
  • next_: (String) (defaults to: nil)
  • prev: (String) (defaults to: nil)


# File 'lib/stigg/internal/my_cursor_id_page.rb', line 104

Instance Attribute Details

#next_String?

Parameters:

  • (String)

Returns:

  • (String, nil)


97
# File 'lib/stigg/internal/my_cursor_id_page.rb', line 97

optional :next_, String, api_name: :next

#prevString?

Parameters:

  • (String)

Returns:

  • (String, nil)


102
# File 'lib/stigg/internal/my_cursor_id_page.rb', line 102

optional :prev, String

Instance Method Details

#to_hash{ next_: String, prev: String }

Returns:

  • ({ next_: String, prev: String })


24
# File 'sig/stigg/internal/my_cursor_id_page.rbs', line 24

def to_hash: -> { next_: String, prev: String }