Exception: NinjaModel::AttributeAssignmentError
- Inherits:
-
NinjaModelError
- Object
- StandardError
- NinjaModelError
- NinjaModel::AttributeAssignmentError
- Defined in:
- lib/ninja_model/attribute_methods.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#mymessage ⇒ Object
readonly
Returns the value of attribute mymessage.
Instance Method Summary collapse
-
#initialize(message, exception, attribute) ⇒ AttributeAssignmentError
constructor
A new instance of AttributeAssignmentError.
Constructor Details
#initialize(message, exception, attribute) ⇒ AttributeAssignmentError
Returns a new instance of AttributeAssignmentError.
7 8 9 10 11 12 |
# File 'lib/ninja_model/attribute_methods.rb', line 7 def initialize(, exception, attribute) @exception = exception @attribute = attribute @message = @mymessage = end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
5 6 7 |
# File 'lib/ninja_model/attribute_methods.rb', line 5 def attribute @attribute end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
5 6 7 |
# File 'lib/ninja_model/attribute_methods.rb', line 5 def exception @exception end |
#mymessage ⇒ Object (readonly)
Returns the value of attribute mymessage.
6 7 8 |
# File 'lib/ninja_model/attribute_methods.rb', line 6 def @mymessage end |