Exception: Kuzira::UnknownAttributeError
- Inherits:
-
NoMethodError
- Object
- NoMethodError
- Kuzira::UnknownAttributeError
- Defined in:
- lib/kuzira/errors.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, attribute) ⇒ UnknownAttributeError
constructor
A new instance of UnknownAttributeError.
Constructor Details
#initialize(object, attribute) ⇒ UnknownAttributeError
Returns a new instance of UnknownAttributeError.
5 6 7 8 9 |
# File 'lib/kuzira/errors.rb', line 5 def initialize(object, attribute) @object = object @attribute = attribute super("unknown attribute '#{attribute}' for #{@object.class}.") end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/kuzira/errors.rb', line 3 def attribute @attribute end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
3 4 5 |
# File 'lib/kuzira/errors.rb', line 3 def object @object end |