Class: Google::Apis::AndroidenterpriseV1::LocalizedText

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Overview

A localized string with its locale.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LocalizedText

Returns a new instance of LocalizedText



1251
1252
1253
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1251

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#localeString

The BCP47 tag for a locale. (e.g. "en-US", "de"). Corresponds to the JSON property locale

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1244

def locale
  @locale
end

#textString

The text localized in the associated locale. Corresponds to the JSON property text

Returns:

  • (String)


1249
1250
1251
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1249

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1256
1257
1258
1259
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1256

def update!(**args)
  @locale = args[:locale] if args.key?(:locale)
  @text = args[:text] if args.key?(:text)
end