Class: Google::Apis::AndroidenterpriseV1::LocalizedText
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::LocalizedText
 
- 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
- 
  
    
      #locale  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The BCP47 tag for a locale. 
- 
  
    
      #text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The text localized in the associated locale. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LocalizedText 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LocalizedText. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LocalizedText
Returns a new instance of LocalizedText
| 1056 1057 1058 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1056 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#locale ⇒ String
The BCP47 tag for a locale. (e.g. "en-US", "de").
Corresponds to the JSON property locale
| 1049 1050 1051 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1049 def locale @locale end | 
#text ⇒ String
The text localized in the associated locale.
Corresponds to the JSON property text
| 1054 1055 1056 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1054 def text @text end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1061 1062 1063 1064 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1061 def update!(**args) @locale = args[:locale] if args.key?(:locale) @text = args[:text] if args.key?(:text) end |