Class: Esse::AsyncIndexing::ActiveRecordCallbacks::Callback

Inherits:
Esse::ActiveRecord::Callback
  • Object
show all
Defined in:
lib/esse/async_indexing/active_record_callbacks/callback.rb

Direct Known Subclasses

LazyUpdateAttribute, OnCreate, OnDestroy, OnUpdate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service_name:, with: nil, **kwargs) ⇒ Callback

Returns a new instance of Callback.



8
9
10
11
12
# File 'lib/esse/async_indexing/active_record_callbacks/callback.rb', line 8

def initialize(service_name:, with: nil, **kwargs)
  @service_name = service_name
  @with = with
  super(**kwargs)
end

Instance Attribute Details

#service_nameObject (readonly)

Returns the value of attribute service_name.



6
7
8
# File 'lib/esse/async_indexing/active_record_callbacks/callback.rb', line 6

def service_name
  @service_name
end