An Account is an object to record financial transactions. Alternatively, an Account can just be a container for a set of Accounts. In this case it cannot directly record any transactions.
# File lib/Account.rb, line 24 24: def initialize(project, id, name, parent) 25: super(project.resources, id, name, parent) 26: project.addAccount(self) 27: 28: @data = Array.new(@project.scenarioCount, nil) 29: @project.scenarioCount.times do |i| 30: @data[i] = AccountScenario.new(self, i, @scenarioAttributes[i]) 31: end 32: end
Many Account functions are scenario specific. These functions are provided by the class AccountScenario. In case we can’t find a function called for the Account class we try to find it in AccountScenario.
# File lib/Account.rb, line 38 38: def method_missing(func, scenarioIdx, *args) 39: @data[scenarioIdx].method(func).call(*args) 40: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.