Module: Serega::SeregaPlugins::Batch::MapPointInstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#batchObject



145
146
147
148
149
150
151
152
# File 'lib/serega/plugins/batch/batch.rb', line 145

def batch
  return @batch if instance_variable_defined?(:@batch)

  @batch = begin
    opts = attribute.batch
    BatchModel.new(opts, self.class.serializer_class.config.batch_loaders, many) if opts
  end
end