Class: Google::Cloud::Translate::V2::Language
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V2::Language
- Defined in:
- lib/google/cloud/translate/v2/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.
44 45 46 |
# File 'lib/google/cloud/translate/v2/language.rb', line 44 def code @code end |
#name ⇒ String (readonly)
The localized name of the language, if available.
50 51 52 |
# File 'lib/google/cloud/translate/v2/language.rb', line 50 def name @name end |