Class: Net::HTTPResponse
- Inherits:
-
Object
- Object
- Net::HTTPResponse
- Defined in:
- lib/lita/handlers/retrotext.rb
Instance Method Summary collapse
Instance Method Details
#ensure_success ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/lita/handlers/retrotext.rb', line 8 def ensure_success unless kind_of? Net::HTTPSuccess warn "Request failed with HTTP #{@code}" each_header do |h,v| warn "#{h} => #{v}" end abort end end |