Class: ScreenshotScout::JsonCaptureResponse
- Inherits:
-
CaptureResponse
- Object
- CaptureResponse
- ScreenshotScout::JsonCaptureResponse
- Defined in:
- lib/screenshotscout/responses.rb,
sig/screenshotscout.rbs
Overview
Successful JSON capture response and its structured result.
Instance Attribute Summary collapse
-
#result ⇒ CaptureResult
readonly
Returns the value of attribute result.
Attributes inherited from CaptureResponse
Instance Method Summary collapse
-
#initialize(result:, raw_response:) ⇒ JsonCaptureResponse
constructor
A new instance of JsonCaptureResponse.
Constructor Details
#initialize(result:, raw_response:) ⇒ JsonCaptureResponse
Returns a new instance of JsonCaptureResponse.
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
#result ⇒ CaptureResult (readonly)
Returns the value of attribute result.
75 76 77 |
# File 'lib/screenshotscout/responses.rb', line 75 def result @result end |