Class: Google::Apis::MirrorV1::Setting
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::MirrorV1::Setting
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mirror_v1/classes.rb,
 generated/google/apis/mirror_v1/representations.rb,
 generated/google/apis/mirror_v1/representations.rb
Overview
A setting for Glass.
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The setting's ID. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of resource. 
- 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The setting value, as a string. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Setting 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Setting. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Setting
Returns a new instance of Setting
| 624 625 626 | # File 'generated/google/apis/mirror_v1/classes.rb', line 624 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#id ⇒ String
The setting's ID. The following IDs are valid:
- locale - The key to the user’s language/locale (BCP 47 identifier) that Glassware should use to render localized content.
- timezone - The key to the user’s current time zone region as defined in the
tz database. Example: America/Los_Angeles.
Corresponds to the JSON property id
| 612 613 614 | # File 'generated/google/apis/mirror_v1/classes.rb', line 612 def id @id end | 
#kind ⇒ String
The type of resource. This is always mirror#setting.
Corresponds to the JSON property kind
| 617 618 619 | # File 'generated/google/apis/mirror_v1/classes.rb', line 617 def kind @kind end | 
#value ⇒ String
The setting value, as a string.
Corresponds to the JSON property value
| 622 623 624 | # File 'generated/google/apis/mirror_v1/classes.rb', line 622 def value @value end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 629 630 631 632 633 | # File 'generated/google/apis/mirror_v1/classes.rb', line 629 def update!(**args) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @value = args[:value] if args.key?(:value) end |