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.



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

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



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

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



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

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



611
612
613
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 611

def two_items
  @two_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



618
619
620
621
622
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 618

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