Class: Fiddler::AttachmentFile
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(path, name = nil) ⇒ AttachmentFile
constructor
A new instance of AttachmentFile.
Constructor Details
#initialize(path, name = nil) ⇒ AttachmentFile
Returns a new instance of AttachmentFile.
28 29 30 31 |
# File 'lib/fiddler/attachment.rb', line 28 def initialize(path,name=nil) super(path) @name = name || File.basename(path) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/fiddler/attachment.rb', line 26 def name @name end |