Class: FlexValidations::Result::Fail::Simple
- Inherits:
-
Object
- Object
- FlexValidations::Result::Fail::Simple
- Defined in:
- lib/flex_validations/result.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(validation, message, value, raw) ⇒ Simple
constructor
A new instance of Simple.
Methods included from FlexValidations::Result::Fail
Methods included from FlexValidations::Result
Constructor Details
#initialize(validation, message, value, raw) ⇒ Simple
Returns a new instance of Simple.
112 113 114 115 116 117 |
# File 'lib/flex_validations/result.rb', line 112 def initialize(validation, , value, raw) @validation = validation = @value = value @raw = raw end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
110 111 112 |
# File 'lib/flex_validations/result.rb', line 110 def end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
110 111 112 |
# File 'lib/flex_validations/result.rb', line 110 def raw @raw end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
110 111 112 |
# File 'lib/flex_validations/result.rb', line 110 def validation @validation end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
110 111 112 |
# File 'lib/flex_validations/result.rb', line 110 def value @value end |