Class: BackgroundJobs::JobMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/background_jobs/job_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = nil)
  @name, @type, @clazz, @options = name, type, clazz, options
end

Instance Attribute Details

#clazzObject (readonly)

Returns the value of attribute clazz.



15
16
17
# File 'lib/background_jobs/job_registry.rb', line 15

def clazz
  @clazz
end

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/background_jobs/job_registry.rb', line 15

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



15
16
17
# File 'lib/background_jobs/job_registry.rb', line 15

def options
  @options
end

#typeObject (readonly)

Returns the value of attribute type.



15
16
17
# File 'lib/background_jobs/job_registry.rb', line 15

def type
  @type
end