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.
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attribute_name, error_code, message) ⇒ ValidationFailure
constructor
A new instance of ValidationFailure.
Constructor Details
#initialize(attribute_name, error_code, message) ⇒ ValidationFailure
Returns a new instance of ValidationFailure.
8 9 10 11 12 |
# File 'lib/fluent_validation/results/validation_failure.rb', line 8 def initialize (attribute_name, error_code, ) @attribute_name = attribute_name @error_code = error_code @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 |
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
5 6 7 |
# File 'lib/fluent_validation/results/validation_failure.rb', line 5 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/fluent_validation/results/validation_failure.rb', line 6 def @message end |