Class: GoFigure::StubHttpFetcher::ErrorResponse
- Inherits:
-
Object
- Object
- GoFigure::StubHttpFetcher::ErrorResponse
- Includes:
- Response
- Defined in:
- lib/go_figure/test/stub_http_fetcher.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(error) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Methods included from Response
Constructor Details
#initialize(error) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
37 38 39 |
# File 'lib/go_figure/test/stub_http_fetcher.rb', line 37 def initialize(error) @error = error end |
Instance Method Details
#execute ⇒ Object
41 42 43 |
# File 'lib/go_figure/test/stub_http_fetcher.rb', line 41 def execute raise @error end |