Class: PerfectQueue::Task
- Inherits:
-
Object
- Object
- PerfectQueue::Task
- Defined in:
- lib/perfectqueue/backend.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(id, created_at, data, resource = nil) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(id, created_at, data, resource = nil) ⇒ Task
Returns a new instance of Task.
6 7 8 9 10 11 |
# File 'lib/perfectqueue/backend.rb', line 6 def initialize(id, created_at, data, resource=nil) @id = id @created_at = created_at @data = data @resource = resource end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
13 14 15 |
# File 'lib/perfectqueue/backend.rb', line 13 def created_at @created_at end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
13 14 15 |
# File 'lib/perfectqueue/backend.rb', line 13 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/perfectqueue/backend.rb', line 13 def id @id end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
13 14 15 |
# File 'lib/perfectqueue/backend.rb', line 13 def resource @resource end |