class Smshelper::Languagetools::DetectLanguageDotCom
Public Instance Methods
detect(text)
click to toggle source
# File lib/smshelper/languagetools/languagetools.rb, line 15 def detect(text) add_query_options! :key => @api_key (post "detect", :extra_query => {:q => text})["data"]["detections"].first["language"] end