Class: Togglefy::ScopedBulkWrapper
- Inherits:
-
Object
- Object
- Togglefy::ScopedBulkWrapper
- Defined in:
- lib/togglefy/scoped_bulk_wrapper.rb
Overview
The ScopedBulkWrapper class provides a wrapper for performing bulk operations on a specific class using the BulkToggler service.
Instance Method Summary collapse
-
#bulk ⇒ BulkToggler
Returns a BulkToggler instance for the specified class.
-
#initialize(klass) ⇒ ScopedBulkWrapper
constructor
Initializes a new ScopedBulkWrapper.
Constructor Details
#initialize(klass) ⇒ ScopedBulkWrapper
Initializes a new ScopedBulkWrapper.
12 13 14 |
# File 'lib/togglefy/scoped_bulk_wrapper.rb', line 12 def initialize(klass) @klass = klass end |
Instance Method Details
#bulk ⇒ BulkToggler
Returns a BulkToggler instance for the specified class.
19 20 21 |
# File 'lib/togglefy/scoped_bulk_wrapper.rb', line 19 def bulk BulkToggler.new(@klass) end |