Class: AlchemyApi::LanguageDetection
- Defined in:
- lib/alchemy_api/language_detection.rb
Class Method Summary collapse
Methods inherited from Base
check_json_for_errors_and_raise!, get_json
Class Method Details
.get_language_handler(response) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/alchemy_api/language_detection.rb', line 42 def self.get_language_handler(response) json = get_json(response) LanguageResult.new(json['url'], json['language'], json['iso-639-1'], json['iso-639-2'], json['iso-639-3'], json['ethnologue'], json['native-speakers'], json['wikipedia']) end |