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