Class: Google::Apis::WalletobjectsV1::LabelValue

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabelValue

Returns a new instance of LabelValue.



4662
4663
4664
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4662

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#labelString

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

Returns:

  • (String)


4642
4643
4644
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4642

def label
  @label
end

#localized_labelGoogle::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



4648
4649
4650
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4648

def localized_label
  @localized_label
end

#localized_valueGoogle::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



4654
4655
4656
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4654

def localized_value
  @localized_value
end

#valueString

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

Returns:

  • (String)


4660
4661
4662
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4660

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4667
4668
4669
4670
4671
4672
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4667

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