Class: Fiddler::AttachmentFile

Inherits:
File
  • Object
show all
Defined in:
lib/fiddler/attachment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



26
27
28
# File 'lib/fiddler/attachment.rb', line 26

def name
  @name
end