struct Marten::Emailing::Attachment

Overview

Represents an email attachment.

Defined in:

marten/emailing/attachment.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(filename : String, mime_type : String, content : Bytes) #

[View source]

Instance Method Detail

def content : Slice(UInt8) #

Returns the attached content bytes.


[View source]
def filename : String #

Returns the attached file name.


[View source]
def mime_type : String #

Returns the attachment MIME type.


[View source]
def size : Int32 #

Returns the attachment size in bytes.


[View source]