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.
122 123 124 125 126 |
# File 'lib/lara/models/text.rb', line 122 def initialize(language:, confidence:) super() @language = language @confidence = confidence end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
120 121 122 |
# File 'lib/lara/models/text.rb', line 120 def confidence @confidence end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
120 121 122 |
# File 'lib/lara/models/text.rb', line 120 def language @language end |