Class: Google::Apis::WalletobjectsV1::TemplateItem
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::TemplateItem
- 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
-
#first_value ⇒ Google::Apis::WalletobjectsV1::FieldSelector
Custom field selector to use with field overrides.
-
#predefined_item ⇒ String
A predefined item to display.
-
#second_value ⇒ Google::Apis::WalletobjectsV1::FieldSelector
Custom field selector to use with field overrides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TemplateItem
constructor
A new instance of TemplateItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TemplateItem
Returns a new instance of TemplateItem.
7032 7033 7034 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first_value ⇒ Google::Apis::WalletobjectsV1::FieldSelector
Custom field selector to use with field overrides.
Corresponds to the JSON property firstValue
7019 7020 7021 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7019 def first_value @first_value end |
#predefined_item ⇒ String
A predefined item to display. Only one of firstValue
or predefinedItem
may
be set.
Corresponds to the JSON property predefinedItem
7025 7026 7027 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7025 def predefined_item @predefined_item end |
#second_value ⇒ Google::Apis::WalletobjectsV1::FieldSelector
Custom field selector to use with field overrides.
Corresponds to the JSON property secondValue
7030 7031 7032 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7030 def second_value @second_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7037 7038 7039 7040 7041 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7037 def update!(**args) @first_value = args[:first_value] if args.key?(:first_value) @predefined_item = args[:predefined_item] if args.key?(:predefined_item) @second_value = args[:second_value] if args.key?(:second_value) end |