Class: Sentdm::Models::PaginationMeta::Cursors
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::PaginationMeta::Cursors
- Defined in:
- lib/sentdm/models/pagination_meta.rb,
sig/sentdm/models/pagination_meta.rbs
Overview
Instance Attribute Summary collapse
-
#after ⇒ String?
Cursor to fetch the next page.
-
#before ⇒ String?
Cursor to fetch the previous page.
Instance Method Summary collapse
-
#initialize(after: nil, before: nil) ⇒ Cursors
constructor
Cursor-based pagination pointers.
- #to_hash ⇒ { after: String?, before: String? }
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(after: nil, before: nil) ⇒ Cursors
Cursor-based pagination pointers
|
|
# File 'lib/sentdm/models/pagination_meta.rb', line 71
|
Instance Attribute Details
#after ⇒ String?
Cursor to fetch the next page
63 |
# File 'lib/sentdm/models/pagination_meta.rb', line 63 optional :after, String, nil?: true |
#before ⇒ String?
Cursor to fetch the previous page
69 |
# File 'lib/sentdm/models/pagination_meta.rb', line 69 optional :before, String, nil?: true |
Instance Method Details
#to_hash ⇒ { after: String?, before: String? }
63 |
# File 'sig/sentdm/models/pagination_meta.rbs', line 63
def to_hash: -> { after: String?, before: String? }
|