Class: Mailtrap::SandboxAttachment

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailtrap/sandbox_attachment.rb

Overview

Data Transfer Object for SandboxAttachment

Instance Attribute Summary collapse

Instance Attribute Details

#attachment_human_sizeString (readonly)

The attachment size in human-readable format

Returns:

  • (String)

    the current value of attachment_human_size



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def attachment_human_size
  @attachment_human_size
end

#attachment_sizeInteger (readonly)

The attachment size in bytes

Returns:

  • (Integer)

    the current value of attachment_size



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def attachment_size
  @attachment_size
end

#attachment_typeString (readonly)

The attachment type

Returns:

  • (String)

    the current value of attachment_type



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def attachment_type
  @attachment_type
end

#content_idString (readonly)

The attachment content ID

Returns:

  • (String)

    the current value of content_id



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def content_id
  @content_id
end

#content_typeString (readonly)

The attachment content type

Returns:

  • (String)

    the current value of content_type



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def content_type
  @content_type
end

#created_atString (readonly)

The attachment creation timestamp

Returns:

  • (String)

    the current value of created_at



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def created_at
  @created_at
end

#download_pathString (readonly)

The attachment download path

Returns:

  • (String)

    the current value of download_path



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def download_path
  @download_path
end

#filenameString (readonly)

The attachment filename

Returns:

  • (String)

    the current value of filename



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def filename
  @filename
end

#idInteger (readonly)

The attachment ID

Returns:

  • (Integer)

    the current value of id



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def id
  @id
end

#message_idInteger (readonly)

The message ID

Returns:

  • (Integer)

    the current value of message_id



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def message_id
  @message_id
end

#transfer_encodingString (readonly)

The attachment transfer encoding

Returns:

  • (String)

    the current value of transfer_encoding



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def transfer_encoding
  @transfer_encoding
end

#updated_atString (readonly)

The attachment update timestamp

Returns:

  • (String)

    the current value of updated_at



19
20
21
# File 'lib/mailtrap/sandbox_attachment.rb', line 19

def updated_at
  @updated_at
end