class Lhm::TableName

Attributes

original[R]

Public Class Methods

new(original, time = Time.now) click to toggle source
# File lib/lhm/table_name.rb, line 3
def initialize(original, time = Time.now)
  @original = original
  @time = time
  @timestamp = Timestamp.new(time)
end

Public Instance Methods

archived() click to toggle source
# File lib/lhm/table_name.rb, line 11
def archived
  "lhma_#{@timestamp}_#{@original}"[0...64]
end
failed() click to toggle source
# File lib/lhm/table_name.rb, line 15
def failed
  archived[0...57] + "_failed"
end
new() click to toggle source
# File lib/lhm/table_name.rb, line 19
def new
  "lhmn_#{@original}"[0...64]
end