Class: FluentValidation::Results::ValidationFailure
- Inherits:
-
Object
- Object
- FluentValidation::Results::ValidationFailure
- Defined in:
- lib/fluent_validation/results/validation_failure.rb
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
readonly
Returns the value of attribute attribute_name.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attribute_name, message) ⇒ ValidationFailure
constructor
A new instance of ValidationFailure.
Constructor Details
#initialize(attribute_name, message) ⇒ ValidationFailure
Returns a new instance of ValidationFailure.
7 8 9 10 |
# File 'lib/fluent_validation/results/validation_failure.rb', line 7 def initialize (attribute_name, ) @attribute_name = attribute_name @message = end |
Instance Attribute Details
#attribute_name ⇒ Object (readonly)
Returns the value of attribute attribute_name.
4 5 6 |
# File 'lib/fluent_validation/results/validation_failure.rb', line 4 def attribute_name @attribute_name end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/fluent_validation/results/validation_failure.rb', line 5 def @message end |