Class: Privy::Models::RelayerFee
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Privy::Models::RelayerFee
- Defined in:
- lib/privy/models/relayer_fee.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#amount ⇒ String
Amount in USD (in decimals).
- #recipient ⇒ String?
- #type ⇒ Symbol, Privy::Models::RelayerFee::Type
Instance Method Summary collapse
-
#initialize(amount:, type:, recipient: nil) ⇒ Object
constructor
Estimated fee paid to the relayer.
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(amount:, type:, recipient: nil) ⇒ Object
Estimated fee paid to the relayer.
|
|
# File 'lib/privy/models/relayer_fee.rb', line 22
|
Instance Attribute Details
#amount ⇒ String
Amount in USD (in decimals).
10 |
# File 'lib/privy/models/relayer_fee.rb', line 10 required :amount, String |
#recipient ⇒ String?
20 |
# File 'lib/privy/models/relayer_fee.rb', line 20 optional :recipient, String |
#type ⇒ Symbol, Privy::Models::RelayerFee::Type
15 |
# File 'lib/privy/models/relayer_fee.rb', line 15 required :type, enum: -> { Privy::RelayerFee::Type } |