Class: FlexValidations::Result::Success::Composite
- Inherits:
-
Object
- Object
- FlexValidations::Result::Success::Composite
- Defined in:
- lib/flex_validations/result.rb
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
-
#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, original, message, value, raw) ⇒ Composite
constructor
A new instance of Composite.
- #message ⇒ Object
Methods included from FlexValidations::Result::Success
Methods included from FlexValidations::Result
Constructor Details
#initialize(validation, original, message, value, raw) ⇒ Composite
Returns a new instance of Composite.
83 84 85 86 87 88 89 |
# File 'lib/flex_validations/result.rb', line 83 def initialize(validation, original, , value, raw) @validation = validation @original = original @message = @value = value @raw = raw end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
81 82 83 |
# File 'lib/flex_validations/result.rb', line 81 def original @original end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
81 82 83 |
# File 'lib/flex_validations/result.rb', line 81 def raw @raw end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
81 82 83 |
# File 'lib/flex_validations/result.rb', line 81 def validation @validation end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
81 82 83 |
# File 'lib/flex_validations/result.rb', line 81 def value @value end |
Instance Method Details
#message ⇒ Object
91 92 93 |
# File 'lib/flex_validations/result.rb', line 91 def @message || @original. end |