Exception: Kuzira::UnknownAttributeError

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/kuzira/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributeObject (readonly)

Returns the value of attribute attribute.



3
4
5
# File 'lib/kuzira/errors.rb', line 3

def attribute
  @attribute
end

#objectObject (readonly)

Returns the value of attribute object.



3
4
5
# File 'lib/kuzira/errors.rb', line 3

def object
  @object
end