Class: GoFigure::StubHttpFetcher::ErrorResponse

Inherits:
Object
  • Object
show all
Includes:
Response
Defined in:
lib/go_figure/test/stub_http_fetcher.rb

Instance Method Summary collapse

Methods included from Response

#invoked!, #invoked?

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

#executeObject

Raises:

  • (@error)


41
42
43
# File 'lib/go_figure/test/stub_http_fetcher.rb', line 41

def execute
  raise @error
end