class PIM::Statistics::StatisticTemplate

Attributes

name[R]

Public Class Methods

new(name, &block) click to toggle source
# File statistics.rb, line 241
def initialize name, &block
  @name = name
  @block = block
end

Public Instance Methods

create_statistic(new_name, **params) click to toggle source
# File statistics.rb, line 246
def create_statistic new_name, **params
  Statistic.new(new_name, **params, &@block)
end