Class: Retab::SplitIouCondition
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::SplitIouCondition
- Defined in:
- lib/retab/workflow_tests/split_iou_condition.rb
Constant Summary collapse
- HASH_ATTRS =
{ kind: :kind, expected: :expected, threshold: :threshold }.freeze
Instance Attribute Summary collapse
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ SplitIouCondition
constructor
A new instance of SplitIouCondition.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ SplitIouCondition
Returns a new instance of SplitIouCondition.
19 20 21 22 23 24 |
# File 'lib/retab/workflow_tests/split_iou_condition.rb', line 19 def initialize(json) hash = self.class.normalize(json) @kind = hash[:kind] @expected = hash[:expected] || {} @threshold = hash[:threshold] end |
Instance Attribute Details
#expected ⇒ Object
Returns the value of attribute expected.
14 15 16 |
# File 'lib/retab/workflow_tests/split_iou_condition.rb', line 14 def expected @expected end |
#kind ⇒ Object
Returns the value of attribute kind.
14 15 16 |
# File 'lib/retab/workflow_tests/split_iou_condition.rb', line 14 def kind @kind end |
#threshold ⇒ Object
Returns the value of attribute threshold.
14 15 16 |
# File 'lib/retab/workflow_tests/split_iou_condition.rb', line 14 def threshold @threshold end |