lib/bit_wallet/transaction.rb in bit_wallet-0.3.0 vs lib/bit_wallet/transaction.rb in bit_wallet-0.4.0
- old
+ new
@@ -8,9 +8,10 @@
:id,
:occurred_at,
:received_at,
:address_str]
attr_reader *READER_ATTRS
+ delegate :wallet, to: :account
def initialize(wallet, args)
args = args.with_indifferent_access
@wallet = wallet
@account = wallet.accounts.new(args[:account])