Class: Jobler::FileDownload
- Inherits:
-
Object
- Object
- Jobler::FileDownload
- Defined in:
- lib/jobler/file_download.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#temp_file ⇒ Object
readonly
Returns the value of attribute temp_file.
Instance Method Summary collapse
-
#initialize(args) ⇒ FileDownload
constructor
A new instance of FileDownload.
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_name ⇒ Object (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_file ⇒ Object (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 |