Module: Yatran::Detectable

Defined in:
lib/yatran/detectable.rb

Instance Method Summary collapse

Instance Method Details

#languageObject Also known as: lang



27
28
29
# File 'lib/yatran/detectable.rb', line 27

def language
   @yatran_lang ||=  API.request('detect', {:text=>self})['lang']
end