Class: Privy::Models::EthereumYieldPositionsInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/ethereum_yield_positions_input.rb,
sig/privy/models/ethereum_yield_positions_input.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) ⇒ EthereumYieldPositionsInput

Input for fetching yield positions.

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/ethereum_yield_positions_input.rb', line 18

Instance Attribute Details

#include_archivedBoolean?

Include archived wallets in lookup. Defaults to false.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


16
# File 'lib/privy/models/ethereum_yield_positions_input.rb', line 16

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

#vault_idString

The vault ID to get position for.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :vault_id, String

Instance Method Details

#to_hash{ vault_id: String, include_archived: bool }

Returns:

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


15
# File 'sig/privy/models/ethereum_yield_positions_input.rbs', line 15

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