Class: Jobler::FileDownload

Inherits:
Object
  • Object
show all
Defined in:
lib/jobler/file_download.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ FileDownload

Returns a new instance of FileDownload.



4
5
6
7
# File 'lib/jobler/file_download.rb', line 4

def initialize(args)
  @file_name = args.fetch(:file_name)
  @temp_file = args.fetch(:temp_file)
end

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name.



2
3
4
# File 'lib/jobler/file_download.rb', line 2

def file_name
  @file_name
end

#temp_fileObject (readonly)

Returns the value of attribute temp_file.



2
3
4
# File 'lib/jobler/file_download.rb', line 2

def temp_file
  @temp_file
end