Class: Sunspot::Queue::DelayedJob::IndexJob
- Inherits:
-
Struct
- Object
- Struct
- Sunspot::Queue::DelayedJob::IndexJob
- Includes:
- Helpers
- Defined in:
- lib/sunspot/queue/delayed_job/index_job.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#klass ⇒ Object
Returns the value of attribute klass.
Instance Method Summary collapse
Methods included from Helpers
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
4 5 6 |
# File 'lib/sunspot/queue/delayed_job/index_job.rb', line 4 def id @id end |
#klass ⇒ Object
Returns the value of attribute klass
4 5 6 |
# File 'lib/sunspot/queue/delayed_job/index_job.rb', line 4 def klass @klass end |
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 |
# File 'lib/sunspot/queue/delayed_job/index_job.rb', line 7 def perform without_proxy do constantize(klass).find(id).solr_index end end |