Class: Google::Apis::WalletobjectsV1::LabelValue
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::LabelValue
- 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
Overview
A pair of text strings to be displayed in the details view. Note we no longer display LabelValue/LabelValueRow as a table, instead a list of items.
Instance Attribute Summary collapse
-
#label ⇒ String
The label for a specific row and column.
-
#localized_label ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the label.
-
#localized_value ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the value.
-
#value ⇒ String
The value for a specific row and column.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabelValue
constructor
A new instance of LabelValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LabelValue
Returns a new instance of LabelValue.
4740 4741 4742 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
The label for a specific row and column. Recommended maximum is 15 characters
for a two-column layout and 30 characters for a one-column layout.
Corresponds to the JSON property label
4720 4721 4722 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4720 def label @label end |
#localized_label ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the label. Recommended maximum is 15 characters for a
two-column layout and 30 characters for a one-column layout.
Corresponds to the JSON property localizedLabel
4726 4727 4728 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4726 def localized_label @localized_label end |
#localized_value ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the value. Recommended maximum is 15 characters for a
two-column layout and 30 characters for a one-column layout.
Corresponds to the JSON property localizedValue
4732 4733 4734 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4732 def localized_value @localized_value end |
#value ⇒ String
The value for a specific row and column. Recommended maximum is 15 characters
for a two-column layout and 30 characters for a one-column layout.
Corresponds to the JSON property value
4738 4739 4740 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4738 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4745 4746 4747 4748 4749 4750 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4745 def update!(**args) @label = args[:label] if args.key?(:label) @localized_label = args[:localized_label] if args.key?(:localized_label) @localized_value = args[:localized_value] if args.key?(:localized_value) @value = args[:value] if args.key?(:value) end |