Class: BackgroundBunnies::Job
- Inherits:
-
Object
- Object
- BackgroundBunnies::Job
- Defined in:
- lib/background_bunnies/job.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
(also: #metadata)
readonly
Returns the value of attribute info.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#properties ⇒ Object
readonly
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize(payload, info = nil, properties = nil) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(payload, info = nil, properties = nil) ⇒ Job
Returns a new instance of Job.
8 9 10 11 12 |
# File 'lib/background_bunnies/job.rb', line 8 def initialize(payload, info = nil, properties = nil) @info = info @properties = properties @payload = payload end |
Instance Attribute Details
#info ⇒ Object (readonly) Also known as: metadata
Returns the value of attribute info.
3 4 5 |
# File 'lib/background_bunnies/job.rb', line 3 def info @info end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
5 6 7 |
# File 'lib/background_bunnies/job.rb', line 5 def payload @payload end |
#properties ⇒ Object (readonly)
Returns the value of attribute properties.
4 5 6 |
# File 'lib/background_bunnies/job.rb', line 4 def properties @properties end |