Module: Cosmo::Job
- Defined in:
- lib/cosmo/job.rb,
lib/cosmo/job/data.rb,
lib/cosmo/job/processor.rb
Defined Under Namespace
Modules: ClassMethods Classes: Data, Processor
Instance Attribute Summary collapse
-
#jid ⇒ Object
Returns the value of attribute jid.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#jid ⇒ Object
Returns the value of attribute jid.
57 58 59 |
# File 'lib/cosmo/job.rb', line 57 def jid @jid end |
Class Method Details
.included(base) ⇒ Object
8 9 10 |
# File 'lib/cosmo/job.rb', line 8 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#perform ⇒ Object
59 60 61 |
# File 'lib/cosmo/job.rb', line 59 def perform(...) raise NotImplementedError, "#{self.class}#perform must be implemented" end |