Class: Knockapi::Models::PageInfo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/knockapi/models/page_info.rb

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

Pagination information for a list of resources.



# File 'lib/knockapi/models/page_info.rb', line 30


Instance Attribute Details

#_typenameString

The typename of the schema.



10
# File 'lib/knockapi/models/page_info.rb', line 10

required :_typename, String, api_name: :__typename

#afterString?

The cursor to fetch entries after.



22
# File 'lib/knockapi/models/page_info.rb', line 22

optional :after, String, nil?: true

#beforeString?

The cursor to fetch entries before.



28
# File 'lib/knockapi/models/page_info.rb', line 28

optional :before, String, nil?: true

#page_sizeInteger

The number of items per page (defaults to 50).



16
# File 'lib/knockapi/models/page_info.rb', line 16

required :page_size, Integer