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.



4879
4880
4881
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4879

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



4866
4867
4868
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4866

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)


4872
4873
4874
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4872

def kind
  @kind
end

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

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



4877
4878
4879
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4877

def translated_values
  @translated_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4884
4885
4886
4887
4888
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4884

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