Exception: Cloudflare::Rails::Railtie::Importer::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudflare/rails/railtie.rb

Overview

Exceptions contain the Net::HTTP response object accessible via the #response method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Instantiate an instance of ResponseError with a Net::HTTPResponse object

Parameters:

  • (Net::HTTPResponse)


39
40
41
42
# File 'lib/cloudflare/rails/railtie.rb', line 39

def initialize(response)
  @response = response
  super(response)
end

Instance Attribute Details

#responseNet::HTTPResponse (readonly)

Returns the response of the last request Net::HTTPOK

Returns:

  • (Net::HTTPResponse)

    A subclass of Net::HTTPResponse, e.g.



35
36
37
# File 'lib/cloudflare/rails/railtie.rb', line 35

def response
  @response
end