Class: EM::FTPD::DirectoryItem

Inherits:
Object
  • Object
show all
Defined in:
lib/em-ftpd/directory_item.rb

Constant Summary collapse

ATTRS =
[:name, :owner, :group, :size, :time, :permissions, :directory]

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ DirectoryItem

Returns a new instance of DirectoryItem.



6
7
8
9
10
# File 'lib/em-ftpd/directory_item.rb', line 6

def initialize(options)
  options.each do |attr, value|
    self.send("#{attr}=", value)
  end
end