Class: DoubleEntry::Reporting::LineAggregateFilter Private
- Inherits:
-
Object
- Object
- DoubleEntry::Reporting::LineAggregateFilter
- Defined in:
- lib/double_entry/reporting/line_aggregate_filter.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 Method Summary collapse
- #filter ⇒ Object private
-
#initialize(account, code, range, filter_criteria) ⇒ LineAggregateFilter
constructor
private
A new instance of LineAggregateFilter.
Constructor Details
#initialize(account, code, range, filter_criteria) ⇒ LineAggregateFilter
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 LineAggregateFilter.
5 6 7 8 9 10 |
# File 'lib/double_entry/reporting/line_aggregate_filter.rb', line 5 def initialize(account, code, range, filter_criteria) @account = account @code = code @range = range @filter_criteria = filter_criteria || [] end |
Instance Method Details
#filter ⇒ 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.
12 13 14 |
# File 'lib/double_entry/reporting/line_aggregate_filter.rb', line 12 def filter @collection ||= apply_filters end |