Class: Google::Apis::WalletobjectsV1::PrivateText

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

Overview

Private data for TextModule. This data will be rendered as a TextModule for a pass.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrivateText

Returns a new instance of PrivateText.



6443
6444
6445
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6443

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

Instance Attribute Details

#bodyGoogle::Apis::WalletobjectsV1::LocalizedString

Translated strings for the body. Corresponds to the JSON property body



6436
6437
6438
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6436

def body
  @body
end

#headerGoogle::Apis::WalletobjectsV1::LocalizedString

Translated strings for the header. Corresponds to the JSON property header



6441
6442
6443
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6441

def header
  @header
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6448
6449
6450
6451
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6448

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @header = args[:header] if args.key?(:header)
end