Class: RailsExecution::Files::Uploader

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_execution/files/uploader.rb

Instance Method Summary collapse

Constructor Details

#initialize(task, inputs, owner: nil) ⇒ Uploader

Returns a new instance of Uploader.



7
8
9
10
11
# File 'lib/rails_execution/files/uploader.rb', line 7

def initialize(task, inputs, owner: nil)
  @task = task
  @files = files_filter(inputs).compact
  @owner = owner
end

Instance Method Details

#callObject

Raises:

  • (::NotImplementedError)


13
14
15
# File 'lib/rails_execution/files/uploader.rb', line 13

def call
  raise ::NotImplementedError, 'File uploader'
end