Class: WhopSDK::Models::User::EarningsUsd::Total

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

Overview

See Also:

  • WhopSDK::Models::User::EarningsUsd#total

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(last_24_hours:, last_30_days:, last_7_days:, lifetime:) ⇒ Object

Gross income from the user's personal wallet plus accounts they own or are owner-authorized on.

Parameters:

  • last_24_hours (String)

    Gross income in USD over the last 24 hours.

  • last_30_days (String)

    Gross income in USD over the last 30 days.

  • last_7_days (String)

    Gross income in USD over the last 7 days.

  • lifetime (String)

    All-time gross income in USD.



# File 'lib/whop_sdk/models/user.rb', line 313

Instance Attribute Details

#last_24_hoursString

Gross income in USD over the last 24 hours.

Parameters:

  • value (String)

Returns:

  • (String)


293
# File 'lib/whop_sdk/models/user.rb', line 293

required :last_24_hours, String

#last_30_daysString

Gross income in USD over the last 30 days.

Parameters:

  • value (String)

Returns:

  • (String)


299
# File 'lib/whop_sdk/models/user.rb', line 299

required :last_30_days, String

#last_7_daysString

Gross income in USD over the last 7 days.

Parameters:

  • value (String)

Returns:

  • (String)


305
# File 'lib/whop_sdk/models/user.rb', line 305

required :last_7_days, String

#lifetimeString

All-time gross income in USD.

Parameters:

  • value (String)

Returns:

  • (String)


311
# File 'lib/whop_sdk/models/user.rb', line 311

required :lifetime, String

Instance Method Details

#to_hash{

Returns:

  • ({)


232
# File 'sig/whop_sdk/models/user.rbs', line 232

def to_hash: -> {