Class: Retab::ConditionEvaluationPerItem
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ConditionEvaluationPerItem
- Defined in:
- lib/retab/workflow_artifacts/condition_evaluation_per_item.rb
Constant Summary collapse
- HASH_ATTRS =
{ index: :index, indices: :indices, actual: :actual, matched: :matched }.freeze
Instance Attribute Summary collapse
-
#actual ⇒ Object
Returns the value of attribute actual.
-
#index ⇒ Object
Returns the value of attribute index.
-
#indices ⇒ Object
Returns the value of attribute indices.
-
#matched ⇒ Object
Returns the value of attribute matched.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ConditionEvaluationPerItem
constructor
A new instance of ConditionEvaluationPerItem.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ConditionEvaluationPerItem
Returns a new instance of ConditionEvaluationPerItem.
21 22 23 24 25 26 27 |
# File 'lib/retab/workflow_artifacts/condition_evaluation_per_item.rb', line 21 def initialize(json) hash = self.class.normalize(json) @index = hash[:index] @indices = (hash[:indices] || []) @actual = hash[:actual] @matched = hash[:matched] end |
Instance Attribute Details
#actual ⇒ Object
Returns the value of attribute actual.
15 16 17 |
# File 'lib/retab/workflow_artifacts/condition_evaluation_per_item.rb', line 15 def actual @actual end |
#index ⇒ Object
Returns the value of attribute index.
15 16 17 |
# File 'lib/retab/workflow_artifacts/condition_evaluation_per_item.rb', line 15 def index @index end |
#indices ⇒ Object
Returns the value of attribute indices.
15 16 17 |
# File 'lib/retab/workflow_artifacts/condition_evaluation_per_item.rb', line 15 def indices @indices end |
#matched ⇒ Object
Returns the value of attribute matched.
15 16 17 |
# File 'lib/retab/workflow_artifacts/condition_evaluation_per_item.rb', line 15 def matched @matched end |