Class: FlexValidations::Result::Success::Simple
- Inherits:
-
Object
- Object
- FlexValidations::Result::Success::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::Success
Methods included from FlexValidations::Result
Constructor Details
#initialize(validation, message, value, raw) ⇒ Simple
Returns a new instance of Simple.
69 70 71 72 73 74 |
# File 'lib/flex_validations/result.rb', line 69 def initialize(validation, , value, raw) @validation = validation @message = @value = value @raw = raw end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
67 68 69 |
# File 'lib/flex_validations/result.rb', line 67 def @message end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
67 68 69 |
# File 'lib/flex_validations/result.rb', line 67 def raw @raw end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
67 68 69 |
# File 'lib/flex_validations/result.rb', line 67 def validation @validation end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
67 68 69 |
# File 'lib/flex_validations/result.rb', line 67 def value @value end |