Class: Restalk::ResqueAdapter::RestalkResqueJob

Inherits:
Object
  • Object
show all
Defined in:
lib/restalk.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



81
82
83
# File 'lib/restalk.rb', line 81

def body
  @body
end

Instance Method Details

#deleteObject



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