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

Defined in:
lib/serega/plugins/batch/batch.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



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