Class: MonkeyMailer::Email::Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/monkey-mailer/email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

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_pathObject

Returns the value of attribute file_path.



19
20
21
# File 'lib/monkey-mailer/email.rb', line 19

def file_path
  @file_path
end