Class: SurgeAPI::Internal::Cursor::Pagination
- Inherits:
-
Type::BaseModel
- Object
- Type::BaseModel
- SurgeAPI::Internal::Cursor::Pagination
- Defined in:
- lib/surge_api/internal/cursor.rb,
sig/surge_api/internal/cursor.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(next_cursor: nil, previous_cursor: nil) ⇒ Pagination
constructor
A new instance of Pagination.
- #to_hash ⇒ { next_cursor: String, previous_cursor: String }
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.
|
|
# File 'lib/surge_api/internal/cursor.rb', line 106
|
Instance Attribute Details
#next_cursor ⇒ String?
99 |
# File 'lib/surge_api/internal/cursor.rb', line 99 optional :next_cursor, String |
#previous_cursor ⇒ String?
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 }
24 |
# File 'sig/surge_api/internal/cursor.rbs', line 24
def to_hash: -> { next_cursor: String, previous_cursor: String }
|