Module: SidekiqProby::Trackable::ClassMethods

Defined in:
lib/sidekiq_proby/trackable.rb

Instance Method Summary collapse

Instance Method Details

#proby_task_id(new_id = nil) ⇒ Object

Public: Gets or sets the proby task id.

I decided to go with this kinda weird getter/setter behavier to make the familiar syntax for setting the task id possible.



18
19
20
21
# File 'lib/sidekiq_proby/trackable.rb', line 18

def proby_task_id(new_id = nil)
  @proby_task_id = new_id if new_id
  @proby_task_id
end