Class: ThatLanguage::Client::DetectQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/that_language/client/detect_query.rb

Instance Attribute Summary

Attributes inherited from Query

#text

Instance Method Summary collapse

Methods inherited from Query

#initialize, #to_h

Constructor Details

This class inherits a constructor from ThatLanguage::Client::Query

Instance Method Details

#confidenceObject



14
15
16
# File 'lib/that_language/client/detect_query.rb', line 14

def confidence
  json["confidence"]
end

#languageObject



6
7
8
# File 'lib/that_language/client/detect_query.rb', line 6

def language
  json["language"]
end

#language_codeObject



10
11
12
# File 'lib/that_language/client/detect_query.rb', line 10

def language_code
  json["language_code"]
end