Class: Privy::Models::EarnAsset
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::EarnAsset
- Defined in:
- lib/privy/models/earn_asset.rb
Instance Attribute Summary collapse
-
#address ⇒ String
Token contract address.
-
#decimals ⇒ Integer
Number of decimals for the asset (e.g. 6 for USDC).
-
#symbol ⇒ String
Lowercase token symbol (e.g. “usdc”).
Instance Method Summary collapse
-
#initialize(address:, decimals:, symbol:) ⇒ Object
constructor
Asset metadata for an earn vault position.
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(address:, decimals:, symbol:) ⇒ Object
Asset metadata for an earn vault position.
|
|
# File 'lib/privy/models/earn_asset.rb', line 24
|
Instance Attribute Details
#address ⇒ String
Token contract address.
10 |
# File 'lib/privy/models/earn_asset.rb', line 10 required :address, String |
#decimals ⇒ Integer
Number of decimals for the asset (e.g. 6 for USDC).
16 |
# File 'lib/privy/models/earn_asset.rb', line 16 required :decimals, Integer |
#symbol ⇒ String
Lowercase token symbol (e.g. “usdc”).
22 |
# File 'lib/privy/models/earn_asset.rb', line 22 required :symbol, String |