Class: MailDude::AttachmentLocator::Attachment
- Inherits:
-
Struct
- Object
- Struct
- MailDude::AttachmentLocator::Attachment
- Defined in:
- lib/mail_dude/attachment_locator.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#part ⇒ Object
Returns the value of attribute part.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/mail_dude/attachment_locator.rb', line 5 def id @id end |
#metadata ⇒ Object
Returns the value of attribute metadata
5 6 7 |
# File 'lib/mail_dude/attachment_locator.rb', line 5 def @metadata end |
#part ⇒ Object
Returns the value of attribute part
5 6 7 |
# File 'lib/mail_dude/attachment_locator.rb', line 5 def part @part end |
Instance Method Details
#content_type ⇒ Object
6 7 8 |
# File 'lib/mail_dude/attachment_locator.rb', line 6 def content_type ['content_type'] end |
#data ⇒ Object
10 11 12 13 14 |
# File 'lib/mail_dude/attachment_locator.rb', line 10 def data part.decoded rescue StandardError part.body.raw_source.to_s end |
#filename ⇒ Object
16 17 18 |
# File 'lib/mail_dude/attachment_locator.rb', line 16 def filename ['filename'] end |
#inline? ⇒ Boolean
20 21 22 |
# File 'lib/mail_dude/attachment_locator.rb', line 20 def inline? ['inline'] end |