Class: ActiveReporter::Tracker::Value

Inherits:
Base show all
Defined in:
lib/active_reporter/tracker/value.rb

Instance Attribute Summary

Attributes inherited from Aggregator::Base

#name, #opts, #report

Instance Method Summary collapse

Methods inherited from Base

#aggregator, #prior_aggregator

Methods inherited from Aggregator::Base

#aggregate, #default_value, #initialize, #sql_value_name

Constructor Details

This class inherits a constructor from ActiveReporter::Aggregator::Base

Instance Method Details

#track(_, prior_row) ⇒ Object



4
5
6
# File 'lib/active_reporter/tracker/value.rb', line 4

def track(_, prior_row)
  prior_row[aggregator] if prior_row.nil?
end