Class: Google::Apis::WalletobjectsV1::TemplateItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TemplateItem

Returns a new instance of TemplateItem.



7438
7439
7440
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7438

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

Instance Attribute Details

#first_valueGoogle::Apis::WalletobjectsV1::FieldSelector

Custom field selector to use with field overrides. Corresponds to the JSON property firstValue



7425
7426
7427
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7425

def first_value
  @first_value
end

#predefined_itemString

A predefined item to display. Only one of firstValue or predefinedItem may be set. Corresponds to the JSON property predefinedItem

Returns:

  • (String)


7431
7432
7433
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7431

def predefined_item
  @predefined_item
end

#second_valueGoogle::Apis::WalletobjectsV1::FieldSelector

Custom field selector to use with field overrides. Corresponds to the JSON property secondValue



7436
7437
7438
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7436

def second_value
  @second_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7443
7444
7445
7446
7447
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7443

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