Class: Orb::Models::PaginationMetadata
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::PaginationMetadata
- Defined in:
- lib/orb/models/pagination_metadata.rb,
sig/orb/models/pagination_metadata.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(has_more:, next_cursor:) ⇒ PaginationMetadata
constructor
A new instance of PaginationMetadata.
- #to_hash ⇒ { has_more: bool, next_cursor: 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(has_more:, next_cursor:) ⇒ PaginationMetadata
Returns a new instance of PaginationMetadata.
|
|
# File 'lib/orb/models/pagination_metadata.rb', line 16
|
Instance Attribute Details
#has_more ⇒ Boolean
9 |
# File 'lib/orb/models/pagination_metadata.rb', line 9 required :has_more, Orb::Internal::Type::Boolean |
#next_cursor ⇒ String?
14 |
# File 'lib/orb/models/pagination_metadata.rb', line 14 required :next_cursor, String, nil?: true |
Instance Method Details
#to_hash ⇒ { has_more: bool, next_cursor: String? }
12 |
# File 'sig/orb/models/pagination_metadata.rbs', line 12
def to_hash: -> { has_more: bool, next_cursor: String? }
|