Class: SimpleHotFolder::HotFolder::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_hot_folder/hot_folder.rb

Overview

Each file or folder from the input folder.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ Item

Returns a new instance of Item.



102
103
104
105
# File 'lib/simple_hot_folder/hot_folder.rb', line 102

def initialize(name, path)
  @name = name
  @path = path
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



100
101
102
# File 'lib/simple_hot_folder/hot_folder.rb', line 100

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



101
102
103
# File 'lib/simple_hot_folder/hot_folder.rb', line 101

def path
  @path
end