Class: WhopSDK::Models::StatRetrieveResponse::Data::Point::Breakdown
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::StatRetrieveResponse::Data::Point::Breakdown
- Defined in:
- lib/whop_sdk/models/stat_retrieve_response.rb,
sig/whop_sdk/models/stat_retrieve_response.rbs
Instance Attribute Summary collapse
-
#name ⇒ String
The property value, for example usd or visa.
-
#value ⇒ Float?
The metric's value for this entry.
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ Breakdown
constructor
A new instance of Breakdown.
- #to_hash ⇒ { name: String, value: Float? }
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(name:, value:) ⇒ Breakdown
Returns a new instance of Breakdown.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/whop_sdk/models/stat_retrieve_response.rb', line 66 class Breakdown < WhopSDK::Internal::Type::BaseModel # @!attribute name # The property value, for example usd or visa. # # @return [String] required :name, String # @!attribute value # The metric's value for this entry. # # @return [Float, nil] required :value, Float, nil?: true # @!method initialize(name:, value:) # @param name [String] The property value, for example usd or visa. # # @param value [Float, nil] The metric's value for this entry. end |
Instance Attribute Details
#name ⇒ String
The property value, for example usd or visa.
71 |
# File 'lib/whop_sdk/models/stat_retrieve_response.rb', line 71 required :name, String |
#value ⇒ Float?
The metric's value for this entry.
77 |
# File 'lib/whop_sdk/models/stat_retrieve_response.rb', line 77 required :value, Float, nil?: true |
Instance Method Details
#to_hash ⇒ { name: String, value: Float? }
75 |
# File 'sig/whop_sdk/models/stat_retrieve_response.rbs', line 75
def to_hash: -> { name: String, value: Float? }
|