Class: Google::Apis::WalletobjectsV1::CardRowTemplateInfo
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::CardRowTemplateInfo
- 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
-
#one_item ⇒ Google::Apis::WalletobjectsV1::CardRowOneItem
Template for a row containing one item.
-
#three_items ⇒ Google::Apis::WalletobjectsV1::CardRowThreeItems
Template for a row containing three items.
-
#two_items ⇒ Google::Apis::WalletobjectsV1::CardRowTwoItems
Template for a row containing two items.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CardRowTemplateInfo
constructor
A new instance of CardRowTemplateInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CardRowTemplateInfo
Returns a new instance of CardRowTemplateInfo.
603 604 605 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 603 def initialize(**args) update!(**args) end |
Instance Attribute Details
#one_item ⇒ Google::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
589 590 591 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 589 def one_item @one_item end |
#three_items ⇒ Google::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
595 596 597 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 595 def three_items @three_items end |
#two_items ⇒ Google::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
601 602 603 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 601 def two_items @two_items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
608 609 610 611 612 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 608 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 |