Class: RemoteImageFetch::CurlError
- Inherits:
-
Object
- Object
- RemoteImageFetch::CurlError
- Defined in:
- lib/remote_image_fetch/curl_error.rb
Overview
Wrap cURL response as if it’s an error
Instance Method Summary collapse
-
#initialize(curl) ⇒ CurlError
constructor
A new instance of CurlError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(curl) ⇒ CurlError
4 5 6 |
# File 'lib/remote_image_fetch/curl_error.rb', line 4 def initialize(curl) @curl = curl end |
Instance Method Details
#message ⇒ Object
8 9 10 |
# File 'lib/remote_image_fetch/curl_error.rb', line 8 def @curl.status end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/remote_image_fetch/curl_error.rb', line 12 def to_s end |