Class: FlexValidations::Chain::SuccessResult
- Inherits:
-
Object
- Object
- FlexValidations::Chain::SuccessResult
- Includes:
- Result, Result::Success
- Defined in:
- lib/flex_validations/chain.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(validation, results, value, raw) ⇒ SuccessResult
constructor
A new instance of SuccessResult.
- #message ⇒ Object
Methods included from Result::Success
Methods included from Result
Constructor Details
#initialize(validation, results, value, raw) ⇒ SuccessResult
Returns a new instance of SuccessResult.
41 42 43 44 45 46 |
# File 'lib/flex_validations/chain.rb', line 41 def initialize(validation, results, value, raw) @validation = validation @results = results @value = value @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
39 40 41 |
# File 'lib/flex_validations/chain.rb', line 39 def raw @raw end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
39 40 41 |
# File 'lib/flex_validations/chain.rb', line 39 def results @results end |
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
39 40 41 |
# File 'lib/flex_validations/chain.rb', line 39 def validation @validation end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
39 40 41 |
# File 'lib/flex_validations/chain.rb', line 39 def value @value end |
Instance Method Details
#message ⇒ Object
48 49 50 |
# File 'lib/flex_validations/chain.rb', line 48 def SuccessMessage.new(@results) end |