Class: Qless::BaseJob
- Inherits:
-
Object
- Object
- Qless::BaseJob
- Defined in:
- lib/qless/job.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client, jid) ⇒ BaseJob
constructor
A new instance of BaseJob.
- #klass ⇒ Object
- #queue ⇒ Object
Constructor Details
#initialize(client, jid) ⇒ BaseJob
Returns a new instance of BaseJob.
10 11 12 13 |
# File 'lib/qless/job.rb', line 10 def initialize(client, jid) @client = client @jid = jid end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/qless/job.rb', line 8 def client @client end |
Instance Method Details
#klass ⇒ Object
15 16 17 |
# File 'lib/qless/job.rb', line 15 def klass @klass ||= @klass_name.split('::').inject(Object) { |context, name| context.const_get(name) } end |