Sha256: 830a314cc45e439bef33ce2d370f8290cf9ca44f0a73b9c79a8dc6d88968a2a7
Contents?: true
Size: 367 Bytes
Versions: 5
Compression:
Stored size: 367 Bytes
Contents
class Bank attr_reader :branch def initialize(bank_class, bank_account) require "cartolify/banks/#{bank_class.downcase}_bank" @branch = Object.const_get("#{bank_class.upcase}Bank").new(bank_account) end def url @branch.url end def balance @branch.balance end def session @branch.session end def transactions @branch.transactions end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
cartolify-0.4.1 | lib/cartolify/bank.rb |
cartolify-0.4 | lib/cartolify/bank.rb |
cartolify-0.3 | lib/cartolify/bank.rb |
cartolify-0.2 | lib/cartolify/bank.rb |
cartolify-0.1 | lib/cartolify/bank.rb |