Class: Google::Apis::WalletobjectsV1::TranslatedString
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::TranslatedString
- 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
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#language ⇒ String
Represents the BCP 47 language tag.
-
#value ⇒ String
The UTF-8 encoded translated string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TranslatedString
constructor
A new instance of TranslatedString.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TranslatedString
Returns a new instance of TranslatedString.
8554 8555 8556 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8554 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#translatedString".
Corresponds to the JSON property kind
8541 8542 8543 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8541 def kind @kind end |
#language ⇒ String
Represents the BCP 47 language tag. Example values are "en-US", "en-GB", "de",
or "de-AT".
Corresponds to the JSON property language
8547 8548 8549 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8547 def language @language end |
#value ⇒ String
The UTF-8 encoded translated string.
Corresponds to the JSON property value
8552 8553 8554 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8552 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8559 8560 8561 8562 8563 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 8559 def update!(**args) @kind = args[:kind] if args.key?(:kind) @language = args[:language] if args.key?(:language) @value = args[:value] if args.key?(:value) end |