Class: SimpleHotFolder::HotFolder::Item
- Inherits:
-
Object
- Object
- SimpleHotFolder::HotFolder::Item
- Defined in:
- lib/simple_hot_folder/hot_folder.rb
Overview
Each file or folder from the input folder.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Item
constructor
A new instance of Item.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
100 101 102 |
# File 'lib/simple_hot_folder/hot_folder.rb', line 100 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
101 102 103 |
# File 'lib/simple_hot_folder/hot_folder.rb', line 101 def path @path end |