Class: Eml2Html::Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/eml2html/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cid, name, content) ⇒ Attachment

Returns a new instance of Attachment.



7
8
9
# File 'lib/eml2html/converter.rb', line 7

def initialize(cid, name, content)
  @cid, @name, @content = cid, name, content
end

Instance Attribute Details

#cidObject (readonly)

Returns the value of attribute cid.



6
7
8
# File 'lib/eml2html/converter.rb', line 6

def cid
  @cid
end

#contentObject (readonly)

Returns the value of attribute content.



6
7
8
# File 'lib/eml2html/converter.rb', line 6

def content
  @content
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/eml2html/converter.rb', line 6

def name
  @name
end