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

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

Overview

A localized string with its locale.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalizedText

Returns a new instance of LocalizedText.



1406
1407
1408
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1406

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)


1399
1400
1401
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1399

def locale
  @locale
end

#textString

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

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1404

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1411
1412
1413
1414
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1411

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