Class: DoubleEntry::Reporting::LineAggregate Private
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- DoubleEntry::Reporting::LineAggregate
- Defined in:
- lib/double_entry/reporting/line_aggregate.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.
Class Method Summary collapse
Instance Method Summary collapse
- #key ⇒ Object private
Class Method Details
.aggregate(function, account, code, range, named_scopes) ⇒ Object
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.
5 6 7 8 9 |
# File 'lib/double_entry/reporting/line_aggregate.rb', line 5 def self.aggregate(function, account, code, range, named_scopes) collection_filter = LineAggregateFilter.new(account, code, range, named_scopes) collection = collection_filter.filter collection.send(function, :amount) end |
Instance Method Details
#key ⇒ Object
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.
11 12 13 |
# File 'lib/double_entry/reporting/line_aggregate.rb', line 11 def key "#{year}:#{month}:#{week}:#{day}:#{hour}" end |