Class: Privy::Models::Currency
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::Currency
- Defined in:
- lib/privy/models/currency.rb
Instance Attribute Summary collapse
-
#asset ⇒ Symbol, ...
A currency asset type.
-
#chain ⇒ String
A valid CAIP-2 chain ID (e.g. ‘eip155:1’).
Instance Method Summary collapse
-
#initialize(chain:, asset: nil) ⇒ Object
constructor
A crypto currency identified by a CAIP-2 chain ID and optional asset.
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(chain:, asset: nil) ⇒ Object
A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
# File 'lib/privy/models/currency.rb', line 18
|
Instance Attribute Details
#asset ⇒ Symbol, ...
A currency asset type.
16 |
# File 'lib/privy/models/currency.rb', line 16 optional :asset, enum: -> { Privy::CurrencyAsset } |
#chain ⇒ String
A valid CAIP-2 chain ID (e.g. ‘eip155:1’).
10 |
# File 'lib/privy/models/currency.rb', line 10 required :chain, String |