Exception: ArchiveLister::HttpError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ArchiveLister::HttpError
- Defined in:
- lib/archive_lister.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, response) ⇒ HttpError
constructor
A new instance of HttpError.
- #to_s ⇒ Object
Constructor Details
#initialize(uri, response) ⇒ HttpError
Returns a new instance of HttpError.
13 14 15 16 |
# File 'lib/archive_lister.rb', line 13 def initialize(uri, response) @uri = uri @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/archive_lister.rb', line 11 def response @response end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
11 12 13 |
# File 'lib/archive_lister.rb', line 11 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/archive_lister.rb', line 18 def to_s "#{uri}\t#{response}" end |