Class: WhopSDK::Models::AccountListResponse::Pagination

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/account_list_response.rb

Overview

See Also:

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(current_page:, next_page:, prev_page:, total_count:, total_pages:) ⇒ Object

Parameters:

  • current_page (Float)

    Current page number

  • next_page (Float, nil)

    Next page number

  • prev_page (Float, nil)

    Previous page number

  • total_count (Float)

    Total number of records

  • total_pages (Float)

    Total number of pages



# File 'lib/whop_sdk/models/account_list_response.rb', line 53

Instance Attribute Details

#current_pageFloat

Current page number

Returns:

  • (Float)


27
# File 'lib/whop_sdk/models/account_list_response.rb', line 27

required :current_page, Float

#next_pageFloat?

Next page number

Returns:

  • (Float, nil)


33
# File 'lib/whop_sdk/models/account_list_response.rb', line 33

required :next_page, Float, nil?: true

#prev_pageFloat?

Previous page number

Returns:

  • (Float, nil)


39
# File 'lib/whop_sdk/models/account_list_response.rb', line 39

required :prev_page, Float, nil?: true

#total_countFloat

Total number of records

Returns:

  • (Float)


45
# File 'lib/whop_sdk/models/account_list_response.rb', line 45

required :total_count, Float

#total_pagesFloat

Total number of pages

Returns:

  • (Float)


51
# File 'lib/whop_sdk/models/account_list_response.rb', line 51

required :total_pages, Float