Class: Google::Apis::WalletobjectsV1::CardBarcodeSectionDetails
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::CardBarcodeSectionDetails
- 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_bottom_detail ⇒ Google::Apis::WalletobjectsV1::BarcodeSectionDetail
Optional information to display below the barcode.
-
#first_top_detail ⇒ Google::Apis::WalletobjectsV1::BarcodeSectionDetail
Optional information to display above the barcode.
-
#second_top_detail ⇒ Google::Apis::WalletobjectsV1::BarcodeSectionDetail
Optional second piece of information to display above the barcode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CardBarcodeSectionDetails
constructor
A new instance of CardBarcodeSectionDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CardBarcodeSectionDetails
Returns a new instance of CardBarcodeSectionDetails.
560 561 562 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 560 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first_bottom_detail ⇒ Google::Apis::WalletobjectsV1::BarcodeSectionDetail
Optional information to display below the barcode.
Corresponds to the JSON property firstBottomDetail
545 546 547 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 545 def first_bottom_detail @first_bottom_detail end |
#first_top_detail ⇒ Google::Apis::WalletobjectsV1::BarcodeSectionDetail
Optional information to display above the barcode. If secondTopDetail
is
defined, this will be displayed to the start side of this detail section.
Corresponds to the JSON property firstTopDetail
551 552 553 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 551 def first_top_detail @first_top_detail end |
#second_top_detail ⇒ Google::Apis::WalletobjectsV1::BarcodeSectionDetail
Optional second piece of information to display above the barcode. If
firstTopDetail
is defined, this will be displayed to the end side of this
detail section.
Corresponds to the JSON property secondTopDetail
558 559 560 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 558 def second_top_detail @second_top_detail end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
565 566 567 568 569 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 565 def update!(**args) @first_bottom_detail = args[:first_bottom_detail] if args.key?(:first_bottom_detail) @first_top_detail = args[:first_top_detail] if args.key?(:first_top_detail) @second_top_detail = args[:second_top_detail] if args.key?(:second_top_detail) end |