Class: Relaxo::Model::Error
- Inherits:
-
Object
- Object
- Relaxo::Model::Error
- Defined in:
- lib/relaxo/model/component.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, exception) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(key, exception) ⇒ Error
Returns a new instance of Error.
26 27 28 29 |
# File 'lib/relaxo/model/component.rb', line 26 def initialize(key, exception) @key = key @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
32 33 34 |
# File 'lib/relaxo/model/component.rb', line 32 def exception @exception end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
31 32 33 |
# File 'lib/relaxo/model/component.rb', line 31 def key @key end |