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.



4801
4802
4803
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4801

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



4788
4789
4790
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4788

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)


4794
4795
4796
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4794

def kind
  @kind
end

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

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



4799
4800
4801
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4799

def translated_values
  @translated_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4806
4807
4808
4809
4810
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4806

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