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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalizedString

Returns a new instance of LocalizedString.



4910
4911
4912
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4910

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



4897
4898
4899
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4897

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)


4903
4904
4905
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4903

def kind
  @kind
end

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

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



4908
4909
4910
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4908

def translated_values
  @translated_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4915
4916
4917
4918
4919
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4915

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