Module: Serega::SeregaPlugins::Batch::AttributeNormalizerInstanceMethods
- Defined in:
- lib/serega/plugins/batch/batch.rb
Overview
SeregaAttributeNormalizer additional/patched instance methods
Instance Method Summary collapse
-
#batch ⇒ Hash
Returns normalized attribute :batch option with prepared :key and :default options.
Instance Method Details
#batch ⇒ Hash
Returns normalized attribute :batch option with prepared :key and :default options. Option :loader will be prepared at serialization time as loaders are usually defined after attributes.
297 298 299 300 301 |
# File 'lib/serega/plugins/batch/batch.rb', line 297 def batch return @batch if instance_variable_defined?(:@batch) @batch = prepare_batch end |