Exception: CloudflareRails::Importer::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudflare_rails/importer.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)


16
17
18
19
# File 'lib/cloudflare_rails/importer.rb', line 16

def initialize(response)
  @response = response
  super
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.



12
13
14
# File 'lib/cloudflare_rails/importer.rb', line 12

def response
  @response
end