Exception: Xeroizer::RecordKeyMustBeDefined

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xeroizer/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(possible_keys) ⇒ RecordKeyMustBeDefined

Returns a new instance of RecordKeyMustBeDefined.



77
78
79
# File 'lib/xeroizer/exceptions.rb', line 77

def initialize(possible_keys)
  @possible_keys = possible_keys
end

Instance Method Details

#messageObject



81
82
83
# File 'lib/xeroizer/exceptions.rb', line 81

def message
  "One of the keys #{@possible_keys.join(', ')} need to be defined to update the record."
end