Class: Google::Apis::WalletobjectsV1::CardRowTemplateInfo

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) ⇒ CardRowTemplateInfo

Returns a new instance of CardRowTemplateInfo.



607
608
609
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 607

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

Instance Attribute Details

#one_itemGoogle::Apis::WalletobjectsV1::CardRowOneItem

Template for a row containing one item. Exactly one of "one_item", "two_items", "three_items" must be set. Corresponds to the JSON property oneItem



593
594
595
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 593

def one_item
  @one_item
end

#three_itemsGoogle::Apis::WalletobjectsV1::CardRowThreeItems

Template for a row containing three items. Exactly one of "one_item", " two_items", "three_items" must be set. Corresponds to the JSON property threeItems



599
600
601
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 599

def three_items
  @three_items
end

#two_itemsGoogle::Apis::WalletobjectsV1::CardRowTwoItems

Template for a row containing two items. Exactly one of "one_item", "two_items" , "three_items" must be set. Corresponds to the JSON property twoItems



605
606
607
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 605

def two_items
  @two_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



612
613
614
615
616
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 612

def update!(**args)
  @one_item = args[:one_item] if args.key?(:one_item)
  @three_items = args[:three_items] if args.key?(:three_items)
  @two_items = args[:two_items] if args.key?(:two_items)
end