Class: Bmg::Summarizer::First

Inherits:
Positional show all
Defined in:
lib/bmg/summarizer/first.rb

Overview

First summarizer.

Example:

# direct ruby usage
Bmg::Summarizer.first(:qty, :order => [:id]).summarize(...)

Instance Attribute Summary

Attributes inherited from Positional

#ordering

Attributes inherited from Bmg::Summarizer

#functor, #options

Instance Method Summary collapse

Methods inherited from Positional

#finalize, #happens, #initialize, #least

Methods inherited from Bmg::Summarizer

avg, bucketize, by_proc, collect, concat, count, distinct, distinct_count, #finalize, first, #happens, #initialize, last, #least, max, median, median_cont, median_disc, min, multiple, percentile, percentile_cont, percentile_disc, stddev, sum, summarization, #summarize, #to_summarizer_name, value_by, variance

Constructor Details

This class inherits a constructor from Bmg::Summarizer::Positional

Instance Method Details

#choose(t1, t2) ⇒ Object



13
14
15
# File 'lib/bmg/summarizer/first.rb', line 13

def choose(t1, t2)
  t1
end