Module: Serega::SeregaPlugins::Batch::SeregaSerializerInstanceMethods
- Defined in:
- lib/serega/plugins/batch/batch.rb
Instance Method Summary collapse
Instance Method Details
#initialize(**_args) ⇒ Object
156 157 158 159 |
# File 'lib/serega/plugins/batch/batch.rb', line 156 def initialize(**_args) super opts[:batch_loaders] = self.class.serializer_class::SeregaBatchLoaders.new end |
#serialize ⇒ Object
161 162 163 164 165 166 167 |
# File 'lib/serega/plugins/batch/batch.rb', line 161 def serialize(*) result = super opts[:batch_loaders].load_all result end |