Class: Hmibo::BulkCreation

Inherits:
Base
  • Object
show all
Defined in:
lib/hmibo/bulk_creation.rb

Overview

Service for bulk creation of records with error handling Follows DetectionTek patterns for simple, consistent service objects

Instance Attribute Summary

Attributes inherited from Base

#data, #errors

Instance Method Summary collapse

Methods inherited from Base

#call, call, #errors?

Constructor Details

#initialize(params, klass) ⇒ BulkCreation

Returns a new instance of BulkCreation.



7
8
9
10
11
# File 'lib/hmibo/bulk_creation.rb', line 7

def initialize(params, klass)
  @params = params
  @klass = klass
  super()
end