In Files

Class Index [+]

Quicksearch

TaskJuggler::Account

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.

Public Class Methods

new(project, id, name, parent) click to toggle source
    # File lib/Account.rb, line 25
25:     def initialize(project, id, name, parent)
26:       super(project.resources, id, name, parent)
27:       project.addAccount(self)
28: 
29:       @data = Array.new(@project.scenarioCount, nil)
30:       @project.scenarioCount.times do |i|
31:         @data[i] = AccountScenario.new(self, i, @scenarioAttributes[i])
32:       end
33:     end

Public Instance Methods

method_missing(func, scenarioIdx, *args) click to toggle source

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 39
39:     def method_missing(func, scenarioIdx, *args)
40:       @data[scenarioIdx].method(func).call(*args)
41:     end
scenario(scenarioIdx) click to toggle source

Return a reference to the scenarioIdx-th scenario.

    # File lib/Account.rb, line 44
44:     def scenario(scenarioIdx)
45:       return @data[scenarioIdx]
46:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.