class PIM::Statistics::OldCounter
Public Class Methods
new(count = nil)
click to toggle source
# File statistics.rb, line 327 def initialize count = nil @count = count.nil? ? 0 : count end
Public Instance Methods
as_json()
click to toggle source
# File statistics.rb, line 339 def as_json @count end
count(n)
click to toggle source
# File statistics.rb, line 331 def count n @count += n end
inspect()
click to toggle source
# File statistics.rb, line 335 def inspect @count.inspect end