Class: Zack::UniqueName
- Inherits:
-
Object
- Object
- Zack::UniqueName
- Defined in:
- lib/zack/unique_name.rb
Overview
A UUID based unique name based on base_name.
Instance Attribute Summary collapse
-
#name ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(base_name) ⇒ UniqueName
constructor
A new instance of UniqueName.
Constructor Details
#initialize(base_name) ⇒ UniqueName
Returns a new instance of UniqueName.
6 7 8 |
# File 'lib/zack/unique_name.rb', line 6 def initialize(base_name) @name = unique_tube_name(base_name) end |
Instance Attribute Details
#name ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute name.
10 11 12 |
# File 'lib/zack/unique_name.rb', line 10 def name @name end |