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.



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

#confidenceObject (readonly)

Returns the value of attribute confidence.



136
137
138
# File 'lib/lara/models/text.rb', line 136

def confidence
  @confidence
end

#languageObject (readonly)

Returns the value of attribute language.



136
137
138
# File 'lib/lara/models/text.rb', line 136

def language
  @language
end