Class: Google::Cloud::Translate::Language
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::Language
- Defined in:
- lib/google/cloud/translate/language.rb
Overview
Language
Represents a supported languages query result. Returned by Api#languages.
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
The language code.
-
#name ⇒ String
readonly
The localized name of the language, if available.
Instance Attribute Details
#code ⇒ String (readonly)
The language code. This is an ISO 639-1 language code.
47 48 49 |
# File 'lib/google/cloud/translate/language.rb', line 47 def code @code end |
#name ⇒ String (readonly)
The localized name of the language, if available.
53 54 55 |
# File 'lib/google/cloud/translate/language.rb', line 53 def name @name end |