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.
550 551 552 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 550 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
535 536 537 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 535 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
541 542 543 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 541 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
548 549 550 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 548 def second_top_detail @second_top_detail end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
555 556 557 558 559 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 555 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 |