Class: BackgroundWorker::Uid
- Inherits:
-
Object
- Object
- BackgroundWorker::Uid
- Defined in:
- lib/background_worker/uid.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(class_name, method) ⇒ Uid
constructor
A new instance of Uid.
Constructor Details
#initialize(class_name, method) ⇒ Uid
Returns a new instance of Uid.
6 7 8 9 |
# File 'lib/background_worker/uid.rb', line 6 def initialize(class_name, method) @class_name = class_name @method = method end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
4 5 6 |
# File 'lib/background_worker/uid.rb', line 4 def class_name @class_name end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/background_worker/uid.rb', line 4 def method @method end |
Instance Method Details
#generate ⇒ Object
11 12 13 |
# File 'lib/background_worker/uid.rb', line 11 def generate "#{generate_uid_name}:#{generate_uid_hash}" end |