Class: Mailtrap::InboundAttachment
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::InboundAttachment
- Defined in:
- lib/mailtrap/inbound_attachment.rb
Overview
Data Transfer Object for an inbound message attachment
rubocop:disable Lint/StructNewOverride -- size is an API field that shadows Struct#size
Instance Attribute Summary collapse
-
#attachment_id ⇒ String
readonly
The attachment ID.
-
#content_disposition ⇒ String?
readonly
attachment or inline.
-
#content_id ⇒ String?
readonly
The content ID for inline attachments.
-
#content_type ⇒ String?
readonly
The attachment MIME type.
-
#download_url ⇒ String?
readonly
Signed URL to download the attachment (only when fetched by ID).
-
#download_url_expires_at ⇒ String?
readonly
When the download URL expires (only when fetched by ID).
-
#filename ⇒ String?
readonly
The attachment filename.
-
#size ⇒ Integer?
readonly
The attachment size in bytes.
Instance Attribute Details
#attachment_id ⇒ String (readonly)
The attachment ID
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def @attachment_id end |
#content_disposition ⇒ String? (readonly)
attachment or inline
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def content_disposition @content_disposition end |
#content_id ⇒ String? (readonly)
The content ID for inline attachments
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def content_id @content_id end |
#content_type ⇒ String? (readonly)
The attachment MIME type
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def content_type @content_type end |
#download_url ⇒ String? (readonly)
Signed URL to download the attachment (only when fetched by ID)
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def download_url @download_url end |
#download_url_expires_at ⇒ String? (readonly)
When the download URL expires (only when fetched by ID)
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def download_url_expires_at @download_url_expires_at end |
#filename ⇒ String? (readonly)
The attachment filename
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def filename @filename end |
#size ⇒ Integer? (readonly)
The attachment size in bytes
15 16 17 |
# File 'lib/mailtrap/inbound_attachment.rb', line 15 def size @size end |