Class: WhopSDK::Models::Referrals::BusinessLeaderboardResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/referrals/business_leaderboard_response.rb,
sig/whop_sdk/models/referrals/business_leaderboard_response.rbs

Overview

See Also:

  • WhopSDK::Resources::Referrals::Businesses#leaderboard

Defined Under Namespace

Classes: Leader, Me

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(url:) ⇒ Object

The user's profile picture. Present only on the caller's own entry.

Parameters:

  • url (String)

    The user's profile picture URL.



# File 'lib/whop_sdk/models/referrals/business_leaderboard_response.rb', line 145

Instance Attribute Details

#leadersArray<WhopSDK::Models::Referrals::BusinessLeaderboardResponse::Leader>

The top referrers by total earnings, best first.



12
13
# File 'lib/whop_sdk/models/referrals/business_leaderboard_response.rb', line 12

required :leaders,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::Referrals::BusinessLeaderboardResponse::Leader] }

#meWhopSDK::Models::Referrals::BusinessLeaderboardResponse::Me?

The caller's own standing; null when the caller has no referral earnings.



19
# File 'lib/whop_sdk/models/referrals/business_leaderboard_response.rb', line 19

required :me, -> { WhopSDK::Models::Referrals::BusinessLeaderboardResponse::Me }, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


20
# File 'sig/whop_sdk/models/referrals/business_leaderboard_response.rbs', line 20

def to_hash: -> {