Class: TranslatorText::Types::TranslationResult
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- TranslatorText::Types::TranslationResult
- Includes:
- JSON
- Defined in:
- lib/translator_text/types/translation_result.rb
Instance Method Summary collapse
-
#detected_language ⇒ Symbol
Returns the detected language.
Methods included from JSON
Instance Method Details
#detected_language ⇒ Symbol
Returns the detected language
14 15 16 17 18 |
# File 'lib/translator_text/types/translation_result.rb', line 14 def detected_language if h = detectedLanguage['language'] h.to_sym end end |