Class: DoubleEntry::AggregateArray
- Inherits:
-
Array
- Object
- Array
- DoubleEntry::AggregateArray
- Defined in:
- lib/double_entry/aggregate_array.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
-
#code ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
-
#filter ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
-
#finish ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
-
#function ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
-
#range_type ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
-
#start ⇒ Object
readonly
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
Instance Method Summary collapse
-
#initialize(function, account, code, options) ⇒ AggregateArray
constructor
A new instance of AggregateArray.
Constructor Details
#initialize(function, account, code, options) ⇒ AggregateArray
Returns a new instance of AggregateArray.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/double_entry/aggregate_array.rb', line 13 def initialize(function, account, code, ) @function = function @account = account @code = code @filter = [:filter] @range_type = [:range_type] @start = [:start] @finish = [:finish] retrieve_aggregates fill_in_missing_aggregates populate_self end |
Instance Attribute Details
#account ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def account @account end |
#code ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def code @code end |
#filter ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def filter @filter end |
#finish ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def finish @finish end |
#function ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def function @function end |
#range_type ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def range_type @range_type end |
#start ⇒ Object (readonly)
An AggregateArray is awesome It is useful for making reports It is basically an array of aggregate results, representing a column of data in a report.
For example, you could request all sales broken down by month and it would return an array of values
11 12 13 |
# File 'lib/double_entry/aggregate_array.rb', line 11 def start @start end |