Module: Serega::SeregaPlugins::Batch::AttributeNormalizerInstanceMethods

Defined in:
lib/serega/plugins/batch/lib/modules/attribute_normalizer.rb

Overview

SeregaAttributeNormalizer additional/patched instance methods

See Also:

  • SeregaAttributeNormalizer::AttributeInstanceMethods

Instance Method Summary collapse

Instance Method Details

#batchHash

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.

Returns:

  • (Hash)

    attribute :batch normalized options



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