Class: Sentdm::Models::PaginationMeta::Cursors

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/pagination_meta.rb,
sig/sentdm/models/pagination_meta.rbs

Overview

See Also:

  • Sentdm::Models::PaginationMeta#cursors

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(after: nil, before: nil) ⇒ Cursors

Cursor-based pagination pointers

Parameters:

  • after (String, nil) (defaults to: nil)

    Cursor to fetch the next page

  • before (String, nil) (defaults to: nil)

    Cursor to fetch the previous page

  • after: (String, nil) (defaults to: nil)
  • before: (String, nil) (defaults to: nil)


# File 'lib/sentdm/models/pagination_meta.rb', line 71

Instance Attribute Details

#afterString?

Cursor to fetch the next page

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


63
# File 'lib/sentdm/models/pagination_meta.rb', line 63

optional :after, String, nil?: true

#beforeString?

Cursor to fetch the previous page

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


69
# File 'lib/sentdm/models/pagination_meta.rb', line 69

optional :before, String, nil?: true

Instance Method Details

#to_hash{ after: String?, before: String? }

Returns:

  • ({ after: String?, before: String? })


63
# File 'sig/sentdm/models/pagination_meta.rbs', line 63

def to_hash: -> { after: String?, before: String? }