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