Class: BSV::Wallet::Postgres::Output

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/bsv/wallet/postgres/output.rb

Instance Method Summary collapse

Instance Method Details

#basketObject



58
59
60
# File 'lib/bsv/wallet/postgres/output.rb', line 58

def basket
  output_basket&.basket
end

#spendable?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/bsv/wallet/postgres/output.rb', line 54

def spendable?
  !spendable_entry.nil? && input.nil?
end