Class: Retab::SimilarityGteCondition

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#kindObject

Returns the value of attribute kind.



15
16
17
# File 'lib/retab/workflow_tests/similarity_gte_condition.rb', line 15

def kind
  @kind
end

#methodObject

Returns the value of attribute method.



15
16
17
# File 'lib/retab/workflow_tests/similarity_gte_condition.rb', line 15

def method
  @method
end

#referenceObject

Returns the value of attribute reference.



15
16
17
# File 'lib/retab/workflow_tests/similarity_gte_condition.rb', line 15

def reference
  @reference
end

#thresholdObject

Returns the value of attribute threshold.



15
16
17
# File 'lib/retab/workflow_tests/similarity_gte_condition.rb', line 15

def threshold
  @threshold
end