Sha256: 685cb8adf5b58ff92618130765f1c1b8cbb0d7c3f4b6fce3384e04a4757fe9a6
Contents?: true
Size: 683 Bytes
Versions: 24
Compression:
Stored size: 683 Bytes
Contents
module Rackamole::Stash # Stash mole information into the env. These objects are meant to track # instances of a similar event occurring in the application so that alerts # are kept under control when shit hits the fan... class Base attr_reader :path, :timestamp, :count # =======================================================================-- protected def initialize( path, timestamp ) @path = path @count = 1 @timestamp = timestamp end public # Update count and timestamp def update( timestamp ) @timestamp = timestamp @count += 1 end end end
Version data entries
24 entries across 24 versions & 1 rubygems