Class: TencentCloud::Ses::V20201002::Attachment
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ses::V20201002::Attachment
- Defined in:
- lib/v20201002/models.rb
Overview
附件结构,包含附件名和base64之后的附件内容。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(filename = nil, content = nil) ⇒ Attachment
constructor
A new instance of Attachment.
Constructor Details
#initialize(filename = nil, content = nil) ⇒ Attachment
Returns a new instance of Attachment.
29 30 31 32 |
# File 'lib/v20201002/models.rb', line 29 def initialize(filename=nil, content=nil) @FileName = filename @Content = content end |
Instance Attribute Details
#Content ⇒ Object
27 28 29 |
# File 'lib/v20201002/models.rb', line 27 def Content @Content end |
#FileName ⇒ Object
27 28 29 |
# File 'lib/v20201002/models.rb', line 27 def FileName @FileName end |
Instance Method Details
#deserialize(params) ⇒ Object
34 35 36 37 |
# File 'lib/v20201002/models.rb', line 34 def deserialize(params) @FileName = params['FileName'] @Content = params['Content'] end |