Class: TencentCloud::Ses::V20201002::Attachment

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201002/models.rb

Overview

附件结构,包含附件名和base64之后的附件内容。

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ContentObject

Parameters:



27
28
29
# File 'lib/v20201002/models.rb', line 27

def Content
  @Content
end

#FileNameObject

Parameters:



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