Class: Google::Apis::MirrorV1::Setting

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#idString

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

Returns:

  • (String)

612
613
614
# File 'generated/google/apis/mirror_v1/classes.rb', line 612

def id
  @id
end

#kindString

The type of resource. This is always mirror#setting. Corresponds to the JSON property kind

Returns:

  • (String)

617
618
619
# File 'generated/google/apis/mirror_v1/classes.rb', line 617

def kind
  @kind
end

#valueString

The setting value, as a string. Corresponds to the JSON property value

Returns:

  • (String)

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