Class: Google::Apis::WalletobjectsV1::TextModuleData
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::TextModuleData
- 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
Data for Text module. All fields are optional. Header will be displayed if available, different types of bodies will be concatenated if they are defined.
Instance Attribute Summary collapse
-
#body ⇒ String
The body of the Text Module, which is defined as an uninterrupted string.
-
#header ⇒ String
The header of the Text Module.
-
#id ⇒ String
The ID associated with a text module.
-
#localized_body ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the body.
-
#localized_header ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the header.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextModuleData
constructor
A new instance of TextModuleData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextModuleData
Returns a new instance of TextModuleData.
7054 7055 7056 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7054 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
The body of the Text Module, which is defined as an uninterrupted string.
Recommended maximum length is 500 characters to ensure full string is
displayed on smaller screens.
Corresponds to the JSON property body
7028 7029 7030 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7028 def body @body end |
#header ⇒ String
The header of the Text Module. Recommended maximum length is 35 characters to
ensure full string is displayed on smaller screens.
Corresponds to the JSON property header
7034 7035 7036 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7034 def header @header end |
#id ⇒ String
The ID associated with a text module. This field is here to enable ease of
management of text modules.
Corresponds to the JSON property id
7040 7041 7042 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7040 def id @id end |
#localized_body ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the body. Recommended maximum length is 500 characters
to ensure full string is displayed on smaller screens.
Corresponds to the JSON property localizedBody
7046 7047 7048 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7046 def localized_body @localized_body end |
#localized_header ⇒ Google::Apis::WalletobjectsV1::LocalizedString
Translated strings for the header. Recommended maximum length is 35 characters
to ensure full string is displayed on smaller screens.
Corresponds to the JSON property localizedHeader
7052 7053 7054 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7052 def localized_header @localized_header end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7059 7060 7061 7062 7063 7064 7065 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 7059 def update!(**args) @body = args[:body] if args.key?(:body) @header = args[:header] if args.key?(:header) @id = args[:id] if args.key?(:id) @localized_body = args[:localized_body] if args.key?(:localized_body) @localized_header = args[:localized_header] if args.key?(:localized_header) end |