class LanguageTools::AlchemyLanguage
Public Class Methods
new(api_key)
click to toggle source
# File lib/esendex4soap.rb, line 28 def initialize(api_key) @api_key = api_key add_query_options! :outputMode => 'json', :apikey => @api_key end
Public Instance Methods
detect(text)
click to toggle source
# File lib/esendex4soap.rb, line 33 def detect(text) (post "TextGetLanguage", :extra_query => {:text => text})["language"] end