Class: WhopSDK::Models::User::BalanceHistory

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#balance_history

Defined Under Namespace

Classes: Data

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

#initializeObject



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

def initialize: (

Instance Attribute Details

#dataArray<WhopSDK::Models::User::BalanceHistory::Data>

Parameters:

  • value (::Array[WhopSDK::User::BalanceHistory::Data])

Returns:



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

required :data, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::User::BalanceHistory::Data] }

#lastFloat

Value of the most recent point, in USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :last, Float

#maxFloat

Maximum value across the window, in USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :max, Float

#minFloat

Minimum value across the window, in USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :min, Float

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {