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.
82 83 84 |
# File 'lib/restalk.rb', line 82 def initialize(data) @body = data end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
81 82 83 |
# File 'lib/restalk.rb', line 81 def body @body end |
Instance Method Details
#delete ⇒ Object
91 92 93 |
# File 'lib/restalk.rb', line 91 def delete true end |
#perform(data) ⇒ Object
86 87 88 89 |
# File 'lib/restalk.rb', line 86 def perform(data) @body = data self end |