Class: Google::Apis::PlacesV1::GoogleTypeLocalizedText
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleTypeLocalizedText
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
Localized variant of a text in a particular language.
Instance Attribute Summary collapse
-
#language_code ⇒ String
The text's BCP-47 language code, such as "en-US" or "sr-Latn".
-
#text ⇒ String
Localized string in the language corresponding to language_code below.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleTypeLocalizedText
constructor
A new instance of GoogleTypeLocalizedText.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleTypeLocalizedText
Returns a new instance of GoogleTypeLocalizedText.
3186 3187 3188 |
# File 'lib/google/apis/places_v1/classes.rb', line 3186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more
information, see http://www.unicode.org/reports/tr35/#
Unicode_locale_identifier.
Corresponds to the JSON property languageCode
3179 3180 3181 |
# File 'lib/google/apis/places_v1/classes.rb', line 3179 def language_code @language_code end |
#text ⇒ String
Localized string in the language corresponding to language_code below.
Corresponds to the JSON property text
3184 3185 3186 |
# File 'lib/google/apis/places_v1/classes.rb', line 3184 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3191 3192 3193 3194 |
# File 'lib/google/apis/places_v1/classes.rb', line 3191 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @text = args[:text] if args.key?(:text) end |