Module: WhopSDK::Models::StatListResponse::Data::Unit

Extended by:
Internal::Type::Enum
Defined in:
lib/whop_sdk/models/stat_list_response.rb,
sig/whop_sdk/models/stat_list_response.rbs

Overview

How to read the metric's values: count is an integer, currency is a decimal amount, and percent is a number where 1.6 means 1.6%.

See Also:

  • WhopSDK::Models::StatListResponse::Data#unit

Constant Summary collapse

COUNT =

Returns:

  • (:count)
:count
CURRENCY =

Returns:

  • (:currency)
:currency
PERCENT =

Returns:

  • (:percent)
:percent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/stat_list_response.rb', line 83

Instance Method Details

#self?.values::Array[WhopSDK::Models::StatListResponse::Data::unit]

Returns:

  • (::Array[WhopSDK::Models::StatListResponse::Data::unit])


67
# File 'sig/whop_sdk/models/stat_list_response.rbs', line 67

def self?.values: -> ::Array[WhopSDK::Models::StatListResponse::Data::unit]