Class: Storage::Algolia::Index::Clear
- Inherits:
-
Base
- Object
- ApplicationService
- Base
- Storage::Algolia::Index::Clear
- Defined in:
- lib/storage/algolia/index/clear.rb
Instance Attribute Summary collapse
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
Instance Method Summary collapse
-
#initialize(model_name:) ⇒ Clear
constructor
A new instance of Clear.
- #process ⇒ Object
Methods inherited from ApplicationService
Constructor Details
#initialize(model_name:) ⇒ Clear
Returns a new instance of Clear.
11 12 13 |
# File 'lib/storage/algolia/index/clear.rb', line 11 def initialize(model_name:) @model_name = model_name end |
Instance Attribute Details
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
9 10 11 |
# File 'lib/storage/algolia/index/clear.rb', line 9 def model_name @model_name end |
Instance Method Details
#process ⇒ Object
15 16 17 |
# File 'lib/storage/algolia/index/clear.rb', line 15 def process index.clear end |