Class: Lhm::TableName
- Inherits:
-
Object
- Object
- Lhm::TableName
- Defined in:
- lib/lhm/table_name.rb
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
- #archived ⇒ Object
- #failed ⇒ Object
-
#initialize(original, time = Time.now) ⇒ TableName
constructor
A new instance of TableName.
- #new ⇒ Object
Constructor Details
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
9 10 11 |
# File 'lib/lhm/table_name.rb', line 9 def original @original end |
Instance Method Details
#archived ⇒ Object
11 12 13 |
# File 'lib/lhm/table_name.rb', line 11 def archived "lhma_#{@timestamp}_#{@original}"[0...64] end |
#failed ⇒ Object
15 16 17 |
# File 'lib/lhm/table_name.rb', line 15 def failed archived[0...57] + "_failed" end |
#new ⇒ Object
19 20 21 |
# File 'lib/lhm/table_name.rb', line 19 def new "lhmn_#{@original}"[0...64] end |