Class: Google::Apis::GamesConfigurationV1configuration::LocalizedString

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

Overview

A localized string resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalizedString

Returns a new instance of LocalizedString.



451
452
453
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 451

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

Instance Attribute Details

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string gamesConfiguration#localizedString. Corresponds to the JSON property kind

Returns:

  • (String)


439
440
441
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 439

def kind
  @kind
end

#localeString

The locale string. Corresponds to the JSON property locale

Returns:

  • (String)


444
445
446
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 444

def locale
  @locale
end

#valueString

The string value. Corresponds to the JSON property value

Returns:

  • (String)


449
450
451
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 449

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



456
457
458
459
460
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 456

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