Class: RbEAI::GetFileLogic
- Inherits:
-
Object
- Object
- RbEAI::GetFileLogic
- Defined in:
- lib/rbeai/GetLogic.rb
Instance Method Summary collapse
- #getFiles ⇒ Object
-
#initialize(protNode, task) ⇒ GetFileLogic
constructor
A new instance of GetFileLogic.
Constructor Details
#initialize(protNode, task) ⇒ GetFileLogic
Returns a new instance of GetFileLogic.
33 34 35 36 37 |
# File 'lib/rbeai/GetLogic.rb', line 33 def initialize(protNode, task) @task = task @location = task.location @pattern = task.pattern end |
Instance Method Details
#getFiles ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/rbeai/GetLogic.rb', line 39 def getFiles() files = [] filesaux = [] files = rio("#{@location}")["#{@pattern}"] files.each do |file| filesaux << @task.persist(file) end return filesaux end |