class Proforma::Modeling::DataTable::Aggregator

An Aggregator is a table aggregator function configuration.

Attributes

function[W]
name[W]
property[RW]

Public Class Methods

new(function: SUM, name: '', property: nil) click to toggle source
# File lib/proforma/modeling/data_table/aggregator.rb, line 27
def initialize(function: SUM, name: '', property: nil)
  @function = function
  @name     = name
  @property = property
end

Public Instance Methods

function() click to toggle source
# File lib/proforma/modeling/data_table/aggregator.rb, line 33
def function
  @function || SUM
end
name() click to toggle source
# File lib/proforma/modeling/data_table/aggregator.rb, line 37
def name
  @name.to_s
end