class Smshelper::Languagetools::AlchemyLanguage
Public Instance Methods
detect(text)
click to toggle source
# File lib/smshelper/languagetools/languagetools.rb, line 26 def detect(text) add_query_options! :outputMode => 'json', :apikey => @api_key (post "TextGetLanguage", :extra_query => {:text => text})["language"] end