Class: Snails::Mailer::MailgunBackend::Attachment
- Inherits:
-
StringIO
- Object
- StringIO
- Snails::Mailer::MailgunBackend::Attachment
- Defined in:
- lib/snails/mailer.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(data, filename, content_type) ⇒ Attachment
constructor
A new instance of Attachment.
Constructor Details
#initialize(data, filename, content_type) ⇒ Attachment
Returns a new instance of Attachment.
204 205 206 207 208 209 |
# File 'lib/snails/mailer.rb', line 204 def initialize(data, filename, content_type) super(data) @path = '' # path @original_filename = filename @content_type = content_type || 'application/octet-stream' end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
202 203 204 |
# File 'lib/snails/mailer.rb', line 202 def content_type @content_type end |
#original_filename ⇒ Object (readonly)
Returns the value of attribute original_filename.
202 203 204 |
# File 'lib/snails/mailer.rb', line 202 def original_filename @original_filename end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
202 203 204 |
# File 'lib/snails/mailer.rb', line 202 def path @path end |