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)


18
19
20
21
# File 'lib/cloudflare_rails/importer.rb', line 18

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.



14
15
16
# File 'lib/cloudflare_rails/importer.rb', line 14

def response
  @response
end