Exception: ConcurrentDownloader::ConnectionError
- Inherits:
-
StandardError
- Object
- StandardError
- ConcurrentDownloader::ConnectionError
- Defined in:
- lib/concurrent_downloader.rb
Instance Attribute Summary collapse
-
#downloader_id ⇒ Object
readonly
Returns the value of attribute downloader_id.
-
#queue_item ⇒ Object
readonly
Returns the value of attribute queue_item.
Instance Method Summary collapse
-
#initialize(queue_item, downloader_id) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
Constructor Details
#initialize(queue_item, downloader_id) ⇒ ConnectionError
Returns a new instance of ConnectionError.
30 31 32 33 34 35 |
# File 'lib/concurrent_downloader.rb', line 30 def initialize(queue_item, downloader_id) @queue_item = queue_item @downloader_id = downloader_id super "There was a connection error: #{@queue_item[:method].upcase} #{@queue_item[:path]}" end |
Instance Attribute Details
#downloader_id ⇒ Object (readonly)
Returns the value of attribute downloader_id.
26 27 28 |
# File 'lib/concurrent_downloader.rb', line 26 def downloader_id @downloader_id end |
#queue_item ⇒ Object (readonly)
Returns the value of attribute queue_item.
26 27 28 |
# File 'lib/concurrent_downloader.rb', line 26 def queue_item @queue_item end |