Class: Lara::Models::DetectPrediction
- Defined in:
- lib/lara/models/text.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
-
#initialize(language:, confidence:) ⇒ DetectPrediction
constructor
A new instance of DetectPrediction.
Methods inherited from Base
Constructor Details
#initialize(language:, confidence:) ⇒ DetectPrediction
Returns a new instance of DetectPrediction.
138 139 140 141 142 |
# File 'lib/lara/models/text.rb', line 138 def initialize(language:, confidence:) super() @language = language @confidence = confidence end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
136 137 138 |
# File 'lib/lara/models/text.rb', line 136 def confidence @confidence end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
136 137 138 |
# File 'lib/lara/models/text.rb', line 136 def language @language end |