Class: MonkeyMailer::Email::Attachment
- Inherits:
-
Object
- Object
- MonkeyMailer::Email::Attachment
- Defined in:
- lib/monkey-mailer/email.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
Instance Method Summary collapse
-
#initialize(hash = nil) ⇒ Attachment
constructor
A new instance of Attachment.
Constructor Details
#initialize(hash = nil) ⇒ Attachment
Returns a new instance of Attachment.
21 22 23 24 25 |
# File 'lib/monkey-mailer/email.rb', line 21 def initialize(hash=nil) unless hash.nil? hash.each_pair{|key, value| self.send("#{key}=", value)} end end |
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
19 20 21 |
# File 'lib/monkey-mailer/email.rb', line 19 def content_type @content_type end |
#file_path ⇒ Object
Returns the value of attribute file_path.
19 20 21 |
# File 'lib/monkey-mailer/email.rb', line 19 def file_path @file_path end |