Class: ScreenshotScout::JsonCaptureResponse

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

Overview

Successful JSON capture response and its structured result.

Instance Attribute Summary collapse

Attributes inherited from CaptureResponse

#raw_response

Instance Method Summary collapse

Constructor Details

#initialize(result:, raw_response:) ⇒ JsonCaptureResponse

Returns a new instance of JsonCaptureResponse.

Parameters:



77
78
79
80
81
# File 'lib/screenshotscout/responses.rb', line 77

def initialize(result:, raw_response:)
  super(raw_response: raw_response)
  @result = result
  freeze
end

Instance Attribute Details

#resultCaptureResult (readonly)

Returns the value of attribute result.

Returns:



75
76
77
# File 'lib/screenshotscout/responses.rb', line 75

def result
  @result
end