Class: Lara::Models::DetectPrediction

Inherits:
Base
  • Object
show all
Defined in:
lib/lara/models/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

parse_time

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

#confidenceObject (readonly)

Returns the value of attribute confidence.



120
121
122
# File 'lib/lara/models/text.rb', line 120

def confidence
  @confidence
end

#languageObject (readonly)

Returns the value of attribute language.



120
121
122
# File 'lib/lara/models/text.rb', line 120

def language
  @language
end