Class: Google::Apis::WalletobjectsV1::CardBarcodeSectionDetails

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) ⇒ CardBarcodeSectionDetails

Returns a new instance of CardBarcodeSectionDetails.



569
570
571
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 569

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#first_bottom_detailGoogle::Apis::WalletobjectsV1::BarcodeSectionDetail

Optional information to display below the barcode. Corresponds to the JSON property firstBottomDetail



554
555
556
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 554

def first_bottom_detail
  @first_bottom_detail
end

#first_top_detailGoogle::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



560
561
562
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 560

def first_top_detail
  @first_top_detail
end

#second_top_detailGoogle::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



567
568
569
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 567

def second_top_detail
  @second_top_detail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



574
575
576
577
578
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 574

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