Class: DownloadResult::Fail
- Inherits:
-
DownloadResult
- Object
- DownloadResult
- DownloadResult::Fail
- Defined in:
- lib/remote_image_fetch/download_result.rb
Overview
Remote download failed
Instance Attribute Summary
Attributes inherited from DownloadResult
Instance Method Summary collapse
- #error_message ⇒ Object
-
#initialize(curl, error) ⇒ Fail
constructor
A new instance of Fail.
Methods inherited from DownloadResult
Constructor Details
#initialize(curl, error) ⇒ Fail
Returns a new instance of Fail.
15 16 17 18 |
# File 'lib/remote_image_fetch/download_result.rb', line 15 def initialize(curl, error) @curl = curl @error = error end |
Instance Method Details
#error_message ⇒ Object
20 21 22 |
# File 'lib/remote_image_fetch/download_result.rb', line 20 def @error.to_s end |