Class: Google::Apis::WalletobjectsV1::PrivateText
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::PrivateText
- 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
-
#body ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the body.
-
#header ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the header.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrivateText
constructor
A new instance of PrivateText.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrivateText
Returns a new instance of PrivateText.
6436 6437 6438 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the body.
Corresponds to the JSON property body
6429 6430 6431 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6429 def body @body end |
#header ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the header.
Corresponds to the JSON property header
6434 6435 6436 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6434 def header @header end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6441 6442 6443 6444 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6441 def update!(**args) @body = args[:body] if args.key?(:body) @header = args[:header] if args.key?(:header) end |