Class: Cadenya::Models::Page

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

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(next_cursor: nil, total: nil) ⇒ Page

Returns a new instance of Page.

Parameters:

  • next_cursor (String) (defaults to: nil)
  • total (Integer) (defaults to: nil)
  • next_cursor: (String) (defaults to: nil)
  • total: (Integer) (defaults to: nil)


# File 'lib/cadenya/models/page.rb', line 16

Instance Attribute Details

#next_cursorString?

Parameters:

  • (String)

Returns:

  • (String, nil)


9
# File 'lib/cadenya/models/page.rb', line 9

optional :next_cursor, String, api_name: :nextCursor

#totalInteger?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


14
# File 'lib/cadenya/models/page.rb', line 14

optional :total, Integer

Instance Method Details

#to_hash{ next_cursor: String, total: Integer }

Returns:

  • ({ next_cursor: String, total: Integer })


16
# File 'sig/cadenya/models/page.rbs', line 16

def to_hash: -> { next_cursor: String, total: Integer }