Class: Stats::StatsType

Inherits:
Object
  • Object
show all
Defined in:
lib/shades/stats.rb

Direct Known Subclasses

Max, Mean, Min, Sum

Class Method Summary collapse

Class Method Details

.get(name) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/shades/stats.rb', line 9

def self.get(name)
  if name.eql?("sum")
    SUM
  elsif name.eql?("mean")
    MEAN
  elsif name.eql?("min")
    MIN
  elsif name.eql?("max")
    MAX
  end
end