Class: Privy::Models::KrakenEmbedUpcomingReward

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/kraken_embed_upcoming_reward.rb,
sig/privy/models/kraken_embed_upcoming_reward.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(accumulated_amount:, asset:, date:, estimated_pending_amount:) ⇒ Object

An upcoming earn reward for a specific asset.

Parameters:



# File 'lib/privy/models/kraken_embed_upcoming_reward.rb', line 28

Instance Attribute Details

#accumulated_amountPrivy::Models::KrakenEmbedEarnAmount

An earn amount with native and converted values.



10
# File 'lib/privy/models/kraken_embed_upcoming_reward.rb', line 10

required :accumulated_amount, -> { Privy::KrakenEmbedEarnAmount }

#assetString

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/privy/models/kraken_embed_upcoming_reward.rb', line 15

required :asset, String

#dateTime

Parameters:

  • value (Time)

Returns:

  • (Time)


20
# File 'lib/privy/models/kraken_embed_upcoming_reward.rb', line 20

required :date, Time

#estimated_pending_amountPrivy::Models::KrakenEmbedEarnAmount?

An earn amount with native and converted values.

Parameters:

Returns:



26
# File 'lib/privy/models/kraken_embed_upcoming_reward.rb', line 26

required :estimated_pending_amount, -> { Privy::KrakenEmbedEarnAmount }, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


27
# File 'sig/privy/models/kraken_embed_upcoming_reward.rbs', line 27

def to_hash: -> {