lib/bit_wallet/transaction.rb in bit_wallet-0.2.0 vs lib/bit_wallet/transaction.rb in bit_wallet-0.3.0
- old
+ new
@@ -1,15 +1,16 @@
module BitWallet
class Transaction
- attr_reader(:account,
- :amount,
- :category,
- :confirmations,
- :id,
- :occurred_at,
- :received_at,
- :address_str)
+ READER_ATTRS = [:account,
+ :amount,
+ :category,
+ :confirmations,
+ :id,
+ :occurred_at,
+ :received_at,
+ :address_str]
+ attr_reader *READER_ATTRS
def initialize(wallet, args)
args = args.with_indifferent_access
@wallet = wallet
@account = wallet.accounts.new(args[:account])