Exception: DattsRight::Exceptions::AttributeExistsError
- Inherits:
-
StandardError
- Object
- StandardError
- DattsRight::Exceptions::AttributeExistsError
- Defined in:
- lib/datts_right/exceptions.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ AttributeExistsError
constructor
A new instance of AttributeExistsError.
Constructor Details
#initialize(reason) ⇒ AttributeExistsError
Returns a new instance of AttributeExistsError.
5 6 7 |
# File 'lib/datts_right/exceptions.rb', line 5 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/datts_right/exceptions.rb', line 4 def reason @reason end |