Class: Mock::Bandwidth::ErrorHandler
- Inherits:
-
Object
- Object
- Mock::Bandwidth::ErrorHandler
- Defined in:
- lib/mock/bandwidth/util/error_handler.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ErrorHandler
constructor
A new instance of ErrorHandler.
- #raise ⇒ Object
Constructor Details
#initialize(response) ⇒ ErrorHandler
Returns a new instance of ErrorHandler.
6 7 8 |
# File 'lib/mock/bandwidth/util/error_handler.rb', line 6 def initialize(response) @response = response end |
Instance Method Details
#raise ⇒ Object
10 11 12 |
# File 'lib/mock/bandwidth/util/error_handler.rb', line 10 def raise @response.body end |