Module: Serega::SeregaPlugins::Batch::AttributeNormalizerInstanceMethods
- Defined in:
- lib/serega/plugins/batch/lib/modules/attribute_normalizer.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.
19 20 21 22 23 |
# File 'lib/serega/plugins/batch/lib/modules/attribute_normalizer.rb', line 19 def batch return @batch if instance_variable_defined?(:@batch) @batch = prepare_batch end |