Class: Autorender::Internal::PagePagination::Meta
- Inherits:
-
Type::BaseModel
- Object
- Type::BaseModel
- Autorender::Internal::PagePagination::Meta
- Defined in:
- lib/autorender/internal/page_pagination.rb,
sig/autorender/internal/page_pagination.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(has_next: nil, page: nil) ⇒ Meta
constructor
A new instance of Meta.
- #to_hash ⇒ { has_next: bool, page: Integer }
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(has_next: nil, page: nil) ⇒ Meta
Returns a new instance of Meta.
|
|
# File 'lib/autorender/internal/page_pagination.rb', line 103
|
Instance Attribute Details
#has_next ⇒ Boolean?
96 |
# File 'lib/autorender/internal/page_pagination.rb', line 96 optional :has_next, Autorender::Internal::Type::Boolean, api_name: :hasNext |
#page ⇒ Integer?
101 |
# File 'lib/autorender/internal/page_pagination.rb', line 101 optional :page, Integer |
Instance Method Details
#to_hash ⇒ { has_next: bool, page: Integer }
24 |
# File 'sig/autorender/internal/page_pagination.rbs', line 24
def to_hash: -> { has_next: bool, page: Integer }
|