Exception: Shale::UnknownAttributeError Private

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/shale/error.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Error for assigning value to not existing attribute

Instance Method Summary collapse

Constructor Details

#initialize(record, attribute) ⇒ UnknownAttributeError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize error object

Parameters:

  • record (String)
  • attribute (String)


64
65
66
# File 'lib/shale/error.rb', line 64

def initialize(record, attribute)
  super("unknown attribute '#{attribute}' for #{record}.")
end