Exception: Brewerydb::HTTPResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Brewerydb::HTTPResponseError
- Defined in:
- lib/brewerydb/http.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(msg, res) ⇒ HTTPResponseError
constructor
A new instance of HTTPResponseError.
- #response ⇒ Object
Constructor Details
#initialize(msg, res) ⇒ HTTPResponseError
7 8 9 10 |
# File 'lib/brewerydb/http.rb', line 7 def initialize(msg, res) super(msg) @res = res end |
Instance Method Details
#code ⇒ Object
12 13 14 |
# File 'lib/brewerydb/http.rb', line 12 def code @res.code end |
#response ⇒ Object
16 17 18 |
# File 'lib/brewerydb/http.rb', line 16 def response @res end |