Class: Google::Apis::WalletobjectsV1::LocalizedString
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::LocalizedString
- 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
-
#default_value ⇒ Google::Apis::WalletobjectsV1::TranslatedString
Contains the string to be displayed if no appropriate translation is available.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#translated_values ⇒ Array<Google::Apis::WalletobjectsV1::TranslatedString>
Contains the translations for the string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocalizedString
constructor
A new instance of LocalizedString.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocalizedString
Returns a new instance of LocalizedString.
4581 4582 4583 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4581 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_value ⇒ Google::Apis::WalletobjectsV1::TranslatedString
Contains the string to be displayed if no appropriate translation is available.
Corresponds to the JSON property defaultValue
4568 4569 4570 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4568 def default_value @default_value end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#localizedString"
.
Corresponds to the JSON property kind
4574 4575 4576 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4574 def kind @kind end |
#translated_values ⇒ Array<Google::Apis::WalletobjectsV1::TranslatedString>
Contains the translations for the string.
Corresponds to the JSON property translatedValues
4579 4580 4581 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4579 def translated_values @translated_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4586 4587 4588 4589 4590 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4586 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 |