Exception: CloudflareRails::Importer::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- CloudflareRails::Importer::ResponseError
- Defined in:
- lib/cloudflare_rails/importer.rb
Overview
Exceptions contain the Net::HTTP response object accessible via the #response method.
Instance Attribute Summary collapse
-
#response ⇒ Net::HTTPResponse
readonly
Returns the response of the last request Net::HTTPOK.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
Instantiate an instance of ResponseError with a Net::HTTPResponse object.
Constructor Details
#initialize(response) ⇒ ResponseError
Instantiate an instance of ResponseError with a Net::HTTPResponse object
18 19 20 21 |
# File 'lib/cloudflare_rails/importer.rb', line 18 def initialize(response) @response = response super end |
Instance Attribute Details
#response ⇒ Net::HTTPResponse (readonly)
Returns the response of the last request Net::HTTPOK
14 15 16 |
# File 'lib/cloudflare_rails/importer.rb', line 14 def response @response end |