class PIM::Statistics::OldCounter

Public Class Methods

new(count = nil) click to toggle source
# File statistics.rb, line 268
def initialize count = nil
  @count = count.nil? ? 0 : count
end

Public Instance Methods

as_json() click to toggle source
# File statistics.rb, line 280
def as_json
  @count
end
count(n) click to toggle source
# File statistics.rb, line 272
def count n
  @count += n
end
inspect() click to toggle source
# File statistics.rb, line 276
def inspect
  @count.inspect
end