Class: BackgroundJobs::JobMetadata
- Inherits:
-
Object
- Object
- BackgroundJobs::JobMetadata
- Defined in:
- lib/background_jobs/job_registry.rb
Instance Attribute Summary collapse
-
#clazz ⇒ Object
readonly
Returns the value of attribute clazz.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, clazz, options = nil) ⇒ JobMetadata
constructor
A new instance of JobMetadata.
Constructor Details
#initialize(name, type, clazz, options = nil) ⇒ JobMetadata
Returns a new instance of JobMetadata.
17 18 19 |
# File 'lib/background_jobs/job_registry.rb', line 17 def initialize(name, type, clazz, = nil) @name, @type, @clazz, @options = name, type, clazz, end |
Instance Attribute Details
#clazz ⇒ Object (readonly)
Returns the value of attribute clazz.
15 16 17 |
# File 'lib/background_jobs/job_registry.rb', line 15 def clazz @clazz end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/background_jobs/job_registry.rb', line 15 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/background_jobs/job_registry.rb', line 15 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
15 16 17 |
# File 'lib/background_jobs/job_registry.rb', line 15 def type @type end |