Class: DoubleEntry::Reporting::AggregateArray Private
- Inherits:
-
Array
- Object
- Array
- DoubleEntry::Reporting::AggregateArray
- Defined in:
- lib/double_entry/reporting/aggregate_array.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
private
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
private
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.
-
#currency ⇒ Object
readonly
private
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
private
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
private
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
private
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
private
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
private
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
private
A new instance of AggregateArray.
Constructor Details
#initialize(function, account, code, options) ⇒ AggregateArray
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AggregateArray.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 14 def initialize(function, account, code, ) @function = function.to_s @account = account @code = code @filter = [:filter] @range_type = [:range_type] @start = [:start] @finish = [:finish] @currency = DoubleEntry::Account.currency(account) retrieve_aggregates fill_in_missing_aggregates populate_self end |
Instance Attribute Details
#account ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def account @account end |
#code ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def code @code end |
#currency ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def currency @currency end |
#filter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def filter @filter end |
#finish ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def finish @finish end |
#function ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def function @function end |
#range_type ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def range_type @range_type end |
#start ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
12 13 14 |
# File 'lib/double_entry/reporting/aggregate_array.rb', line 12 def start @start end |