Exception: CosSinCalc::Triangle::Validator::ValidationError
- Inherits:
-
Exception
- Object
- Exception
- CosSinCalc::Triangle::Validator::ValidationError
- Defined in:
- lib/cossincalc/triangle/validator.rb
Instance Attribute Summary collapse
-
#angles_valid ⇒ Object
readonly
Returns the value of attribute angles_valid.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#sides_valid ⇒ Object
readonly
Returns the value of attribute sides_valid.
Instance Method Summary collapse
-
#initialize(messages, sides_valid = {}, angles_valid = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(messages, sides_valid = {}, angles_valid = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
15 16 17 |
# File 'lib/cossincalc/triangle/validator.rb', line 15 def initialize(, sides_valid = {}, angles_valid = {}) @messages, @sides_valid, @angles_valid = , sides_valid, angles_valid end |
Instance Attribute Details
#angles_valid ⇒ Object (readonly)
Returns the value of attribute angles_valid.
13 14 15 |
# File 'lib/cossincalc/triangle/validator.rb', line 13 def angles_valid @angles_valid end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
13 14 15 |
# File 'lib/cossincalc/triangle/validator.rb', line 13 def @messages end |
#sides_valid ⇒ Object (readonly)
Returns the value of attribute sides_valid.
13 14 15 |
# File 'lib/cossincalc/triangle/validator.rb', line 13 def sides_valid @sides_valid end |