Method: Zold::Patch#initialize
- Defined in:
- lib/zold/patch.rb
#initialize(wallets, log: Log::Quiet.new) ⇒ Patch
Returns a new instance of Patch.
35 36 37 38 39 40 41 |
# File 'lib/zold/patch.rb', line 35 def initialize(wallets, log: Log::Quiet.new) raise 'Wallets can\'t be nil' if wallets.nil? raise 'Wallets must implement the contract of Wallets: method #find is required' unless wallets.respond_to?(:find) @wallets = wallets @txns = [] @log = log end |