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.
Instance Method Summary collapse
-
#initialize(id, created_at, data) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(id, created_at, data) ⇒ Task
Returns a new instance of Task.
6 7 8 9 10 |
# File 'lib/perfectqueue/backend.rb', line 6 def initialize(id, created_at, data) @id = id @created_at = created_at @data = data end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
12 13 14 |
# File 'lib/perfectqueue/backend.rb', line 12 def created_at @created_at end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
12 13 14 |
# File 'lib/perfectqueue/backend.rb', line 12 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/perfectqueue/backend.rb', line 12 def id @id end |