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
16 17 18 19 20 |
# File 'lib/translator_text/types/translation_result.rb', line 16 def detected_language return unless (h = detectedLanguage['language']) h.to_sym end |