def balance
      txns.inject(Amount::ZERO) { |sum, t| sum + t.amount }
    end
def balance
      txns.inject(Amount::ZERO) { |sum, t| sum + t.amount }
    end
def balance txns . inject ( Amount :: ZERO ) { | sum , t | sum + t . amount } end
Returns current wallet balance.
Returns current wallet balance .