Class: RbEAI::PutFileLogic

Inherits:
Object
  • Object
show all
Defined in:
lib/rbeai/PutLogic.rb

Instance Method Summary collapse

Constructor Details

#initialize(task) ⇒ PutFileLogic

Returns a new instance of PutFileLogic.



32
33
34
35
# File 'lib/rbeai/PutLogic.rb', line 32

def initialize(task)
  @task = task
  @location = task.location
end

Instance Method Details

#putFile(obj) ⇒ Object



37
38
39
# File 'lib/rbeai/PutLogic.rb', line 37

def putFile(obj)
  rio("#{obj}") > rio("#{@location}")
end