Class: BackgroundWorker::Uid

Inherits:
Object
  • Object
show all
Defined in:
lib/background_worker/uid.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#methodObject (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

#generateObject



11
12
13
# File 'lib/background_worker/uid.rb', line 11

def generate
  "#{generate_uid_name}:#{generate_uid_hash}"
end