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.
554 555 556 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 554 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
539 540 541 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 539 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
545 546 547 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 545 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
552 553 554 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 552 def second_top_detail @second_top_detail end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
559 560 561 562 563 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 559 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 |