Class: TencentCloud::Ses::V20201002::TemplateContent
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ses::V20201002::TemplateContent
- Defined in:
- lib/v20201002/models.rb
Overview
模板内容,TEXT和HTML必须至少存在一项,建议使用TEXT和HTML的组合
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(html = nil, text = nil) ⇒ TemplateContent
constructor
A new instance of TemplateContent.
Constructor Details
#initialize(html = nil, text = nil) ⇒ TemplateContent
Returns a new instance of TemplateContent.
2192 2193 2194 2195 |
# File 'lib/v20201002/models.rb', line 2192 def initialize(html=nil, text=nil) @Html = html @Text = text end |
Instance Attribute Details
#Html ⇒ Object
2190 2191 2192 |
# File 'lib/v20201002/models.rb', line 2190 def Html @Html end |
#Text ⇒ Object
2190 2191 2192 |
# File 'lib/v20201002/models.rb', line 2190 def Text @Text end |
Instance Method Details
#deserialize(params) ⇒ Object
2197 2198 2199 2200 |
# File 'lib/v20201002/models.rb', line 2197 def deserialize(params) @Html = params['Html'] @Text = params['Text'] end |