Class: Emailfuse::Deliverer::Attachment
- Inherits:
-
StringIO
- Object
- StringIO
- Emailfuse::Deliverer::Attachment
- Defined in:
- lib/emailfuse/deliverer.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#original_filename ⇒ Object
readonly
Returns the value of attribute original_filename.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(attachment, *rest) ⇒ Attachment
constructor
A new instance of Attachment.
Constructor Details
#initialize(attachment, *rest) ⇒ Attachment
Returns a new instance of Attachment.
6 7 8 9 10 11 |
# File 'lib/emailfuse/deliverer.rb', line 6 def initialize (, *rest) @path = "" @original_filename = .filename @content_type = .content_type.split(";")[0] super .body.decoded end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
4 5 6 |
# File 'lib/emailfuse/deliverer.rb', line 4 def content_type @content_type end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
4 5 6 |
# File 'lib/emailfuse/deliverer.rb', line 4 def original_filename @original_filename end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/emailfuse/deliverer.rb', line 4 def path @path end |