Sha256: f628d036086beff6af0a3e737052359721f7ff95675b823162676230d53dc5fd
Contents?: true
Size: 393 Bytes
Versions: 28
Compression:
Stored size: 393 Bytes
Contents
module Lhm class TableName def initialize(original, time = Time.now) @original = original @time = time @timestamp = Timestamp.new(time) end attr_reader :original def archived "lhma_#{@timestamp}_#{@original}"[0...64] end def failed archived[0...57] + "_failed" end def new "lhmn_#{@original}"[0...64] end end end
Version data entries
28 entries across 28 versions & 2 rubygems