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.



557
558
559
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 557

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



542
543
544
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 542

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



548
549
550
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 548

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



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

def second_top_detail
  @second_top_detail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



562
563
564
565
566
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 562

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