lib/double_entry/reporting/aggregate_array.rb
# 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
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
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
def populate_self
        all_periods.each do |period|
          self << @aggregates[period.key]
        end
      end
def populate_self all_periods . each do | period | self << @aggregates [ period . key ] end end
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.
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 .