Class: ScreenshotScout::CaptureResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/screenshotscout/responses.rb,
sig/screenshotscout.rbs

Overview

Shared response base that exposes the exact buffered HTTP response.

Direct Known Subclasses

BinaryCaptureResponse, JsonCaptureResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_response:) ⇒ CaptureResponse

Returns a new instance of CaptureResponse.

Parameters:



41
42
43
# File 'lib/screenshotscout/responses.rb', line 41

def initialize(raw_response:)
  @raw_response = raw_response
end

Instance Attribute Details

#raw_responseRawResponse (readonly)

Returns the value of attribute raw_response.

Returns:



39
40
41
# File 'lib/screenshotscout/responses.rb', line 39

def raw_response
  @raw_response
end