Class: WhopSDK::Models::DepositCreateResponse::Methods::Crypto::SupportedCurrency
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::DepositCreateResponse::Methods::Crypto::SupportedCurrency
- Defined in:
- lib/whop_sdk/models/deposit_create_response.rb,
sig/whop_sdk/models/deposit_create_response.rbs
Instance Attribute Summary collapse
-
#icon_url ⇒ String?
Token icon URL.
-
#name ⇒ String
Token symbol, such as
USDC.
Instance Method Summary collapse
-
#initialize(deposit_address:, icon_url:, name:, supported_currencies:) ⇒ SupportedCurrency
constructor
Some parameter documentations has been truncated, see WhopSDK::Models::DepositCreateResponse::Methods::Crypto for more details.
- #to_hash ⇒ { icon_url: String?, name: String }
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(deposit_address:, icon_url:, name:, supported_currencies:) ⇒ SupportedCurrency
Some parameter documentations has been truncated, see WhopSDK::Models::DepositCreateResponse::Methods::Crypto for more details.
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 196 class SupportedCurrency < WhopSDK::Internal::Type::BaseModel # @!attribute icon_url # Token icon URL. Null when no icon is available. # # @return [String, nil] required :icon_url, String, nil?: true # @!attribute name # Token symbol, such as `USDC`. # # @return [String] required :name, String # @!method initialize(icon_url:, name:) # @param icon_url [String, nil] Token icon URL. Null when no icon is available. # # @param name [String] Token symbol, such as `USDC`. end |
Instance Attribute Details
#icon_url ⇒ String?
Token icon URL. Null when no icon is available.
201 |
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 201 required :icon_url, String, nil?: true |
#name ⇒ String
Token symbol, such as USDC.
207 |
# File 'lib/whop_sdk/models/deposit_create_response.rb', line 207 required :name, String |
Instance Method Details
#to_hash ⇒ { icon_url: String?, name: String }
171 |
# File 'sig/whop_sdk/models/deposit_create_response.rbs', line 171
def to_hash: -> { icon_url: String?, name: String }
|