Class: DoubleEntry::Reporting::LineAggregateFilter Private

Inherits:
Object
  • Object
show all
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

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(, code, range, filter_criteria)
  @account         = 
  @code            = code
  @range           = range
  @filter_criteria = filter_criteria || []
end

Instance Method Details

#filterObject

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