Class: Privy::Models::Wallets::EthereumEarnPositionQuery

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/wallets/ethereum_earn_position_query.rb,
sig/privy/models/wallets/ethereum_earn_position_query.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(vault_id:, include_archived: nil) ⇒ EthereumEarnPositionQuery

Query parameters for fetching an earn vault position.

Parameters:

  • vault_id (String)

    The vault ID to get position for.

  • include_archived (Boolean) (defaults to: nil)

    Include archived wallets in lookup. Defaults to false.

  • vault_id: (String)
  • include_archived: (Boolean) (defaults to: nil)


# File 'lib/privy/models/wallets/ethereum_earn_position_query.rb', line 19

Instance Attribute Details

#include_archivedBoolean?

Include archived wallets in lookup. Defaults to false.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


17
# File 'lib/privy/models/wallets/ethereum_earn_position_query.rb', line 17

optional :include_archived, Privy::Internal::Type::Boolean

#vault_idString

The vault ID to get position for.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/privy/models/wallets/ethereum_earn_position_query.rb', line 11

required :vault_id, String

Instance Method Details

#to_hash{ vault_id: String, include_archived: bool }

Returns:

  • ({ vault_id: String, include_archived: bool })


16
# File 'sig/privy/models/wallets/ethereum_earn_position_query.rbs', line 16

def to_hash: -> { vault_id: String, include_archived: bool }