Class: Odin::Validation::InvariantEvaluator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/odin/validation/invariant_evaluator.rb

Overview

Result of evaluating an expression.

value:        true/false when evaluable; nil when an operand is absent.
null_operand: true if any referenced field is present but null.

Instance Attribute Summary collapse

Instance Attribute Details

#null_operandObject

Returns the value of attribute null_operand

Returns:

  • (Object)

    the current value of null_operand



48
49
50
# File 'lib/odin/validation/invariant_evaluator.rb', line 48

def null_operand
  @null_operand
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



48
49
50
# File 'lib/odin/validation/invariant_evaluator.rb', line 48

def value
  @value
end