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
25 26 27 |
# File 'lib/mail_dude/attachment_locator.rb', line 25 def id @id end |
#metadata ⇒ Object
Returns the value of attribute metadata
25 26 27 |
# File 'lib/mail_dude/attachment_locator.rb', line 25 def @metadata end |
#part ⇒ Object
Returns the value of attribute part
25 26 27 |
# File 'lib/mail_dude/attachment_locator.rb', line 25 def part @part end |
Instance Method Details
#content_type ⇒ Object
26 27 28 |
# File 'lib/mail_dude/attachment_locator.rb', line 26 def content_type ['content_type'] end |
#data ⇒ Object
30 31 32 33 34 |
# File 'lib/mail_dude/attachment_locator.rb', line 30 def data part.decoded rescue StandardError part.body.raw_source.to_s end |
#filename ⇒ Object
36 37 38 |
# File 'lib/mail_dude/attachment_locator.rb', line 36 def filename ['filename'] end |
#inline? ⇒ Boolean
40 41 42 |
# File 'lib/mail_dude/attachment_locator.rb', line 40 def inline? ['inline'] end |