Class: TableSync::NoPrimaryKeyError
Instance Method Summary collapse
-
#initialize(object_class, object_data, primary_key_columns) ⇒ NoPrimaryKeyError
constructor
A new instance of NoPrimaryKeyError.
Constructor Details
#initialize(object_class, object_data, primary_key_columns) ⇒ NoPrimaryKeyError
Returns a new instance of NoPrimaryKeyError.
19 20 21 22 23 24 |
# File 'lib/table_sync/errors.rb', line 19 def initialize(object_class, object_data, primary_key_columns) super(<<~MSG.squish) Can't find or init an object of #{object_class} with #{object_data.inspect}. Incomplete primary key! object_data must contain: #{primary_key_columns.inspect}. MSG end |