Class: Restalk::ResqueAdapter::RestalkResqueJob
- Inherits:
-
Object
- Object
- Restalk::ResqueAdapter::RestalkResqueJob
- Defined in:
- lib/restalk.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(data) ⇒ RestalkResqueJob
constructor
A new instance of RestalkResqueJob.
- #perform(data) ⇒ Object
Constructor Details
#initialize(data) ⇒ RestalkResqueJob
Returns a new instance of RestalkResqueJob.
68 69 70 |
# File 'lib/restalk.rb', line 68 def initialize(data) @body = data end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
67 68 69 |
# File 'lib/restalk.rb', line 67 def body @body end |
Instance Method Details
#delete ⇒ Object
77 78 79 |
# File 'lib/restalk.rb', line 77 def delete true end |
#perform(data) ⇒ Object
72 73 74 75 |
# File 'lib/restalk.rb', line 72 def perform(data) @body = data self end |