Class: Sunspot::Queue::DelayedJob::IndexJob

Inherits:
Struct
  • Object
show all
Includes:
Helpers
Defined in:
lib/sunspot/queue/delayed_job/index_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#constantize, #without_proxy

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/sunspot/queue/delayed_job/index_job.rb', line 4

def id
  @id
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



4
5
6
# File 'lib/sunspot/queue/delayed_job/index_job.rb', line 4

def klass
  @klass
end

Instance Method Details

#performObject



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