Class: Retab::ReviewFieldConfidenceLt

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_reviews/review_field_confidence_lt.rb

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind,
  path: :path,
  threshold: :threshold
}.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) ⇒ ReviewFieldConfidenceLt

Returns a new instance of ReviewFieldConfidenceLt.



19
20
21
22
23
24
# File 'lib/retab/workflow_reviews/review_field_confidence_lt.rb', line 19

def initialize(json)
  hash = self.class.normalize(json)
  @kind = hash[:kind]
  @path = hash[:path]
  @threshold = hash[:threshold]
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



14
15
16
# File 'lib/retab/workflow_reviews/review_field_confidence_lt.rb', line 14

def kind
  @kind
end

#pathObject

Returns the value of attribute path.



14
15
16
# File 'lib/retab/workflow_reviews/review_field_confidence_lt.rb', line 14

def path
  @path
end

#thresholdObject

Returns the value of attribute threshold.



14
15
16
# File 'lib/retab/workflow_reviews/review_field_confidence_lt.rb', line 14

def threshold
  @threshold
end