Class: TableSync::UnprovidedEventTargetKeysError

Inherits:
Error
  • Object
show all
Defined in:
lib/table_sync/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(target_keys, target_attributes) ⇒ UnprovidedEventTargetKeysError

Returns a new instance of UnprovidedEventTargetKeysError.

Parameters:

  • target_keys (Array<Symbol,String>)
  • target_attributes (Hash<Symbol|String,Any>)


34
35
36
37
38
39
# File 'lib/table_sync/errors.rb', line 34

def initialize(target_keys, target_attributes)
  super("    Some target keys not found in received attributes!\n    (Expects: \#{target_keys}, Actual: \#{target_attributes.keys})\n  MSG\nend\n".squish)