Class: Google::Apis::WalletobjectsV1::LocalizedString

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalizedString

Returns a new instance of LocalizedString.

[View source]

4680
4681
4682
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4680

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

Instance Attribute Details

#default_valueGoogle::Apis::WalletobjectsV1::TranslatedString

Contains the string to be displayed if no appropriate translation is available. Corresponds to the JSON property defaultValue


4667
4668
4669
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4667

def default_value
  @default_value
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#localizedString". Corresponds to the JSON property kind

Returns:

  • (String)

4673
4674
4675
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4673

def kind
  @kind
end

#translated_valuesArray<Google::Apis::WalletobjectsV1::TranslatedString>

Contains the translations for the string. Corresponds to the JSON property translatedValues


4678
4679
4680
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4678

def translated_values
  @translated_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4685
4686
4687
4688
4689
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4685

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