Class: ScreenshotScout::BinaryCaptureResponse
- Inherits:
-
CaptureResponse
- Object
- CaptureResponse
- ScreenshotScout::BinaryCaptureResponse
- Defined in:
- lib/screenshotscout/responses.rb,
sig/screenshotscout.rbs
Overview
Successful binary capture, including response metadata and image/PDF bytes.
Instance Attribute Summary collapse
-
#bytes ⇒ String
readonly
Returns the value of attribute bytes.
-
#cache_status ⇒ String?
readonly
Returns the value of attribute cache_status.
-
#screenshot_url ⇒ String?
readonly
Returns the value of attribute screenshot_url.
-
#screenshot_url_expires_at ⇒ String?
readonly
Returns the value of attribute screenshot_url_expires_at.
Attributes inherited from CaptureResponse
Instance Method Summary collapse
-
#initialize(raw_response:, screenshot_url:, screenshot_url_expires_at:, cache_status:) ⇒ BinaryCaptureResponse
constructor
A new instance of BinaryCaptureResponse.
Constructor Details
#initialize(raw_response:, screenshot_url:, screenshot_url_expires_at:, cache_status:) ⇒ BinaryCaptureResponse
Returns a new instance of BinaryCaptureResponse.
50 51 52 53 54 55 56 57 |
# File 'lib/screenshotscout/responses.rb', line 50 def initialize(raw_response:, screenshot_url:, screenshot_url_expires_at:, cache_status:) super(raw_response: raw_response) @bytes = raw_response.body @screenshot_url = screenshot_url @screenshot_url_expires_at = screenshot_url_expires_at @cache_status = cache_status freeze end |
Instance Attribute Details
#bytes ⇒ String (readonly)
Returns the value of attribute bytes.
48 49 50 |
# File 'lib/screenshotscout/responses.rb', line 48 def bytes @bytes end |
#cache_status ⇒ String? (readonly)
Returns the value of attribute cache_status.
48 49 50 |
# File 'lib/screenshotscout/responses.rb', line 48 def cache_status @cache_status end |
#screenshot_url ⇒ String? (readonly)
Returns the value of attribute screenshot_url.
48 49 50 |
# File 'lib/screenshotscout/responses.rb', line 48 def screenshot_url @screenshot_url end |
#screenshot_url_expires_at ⇒ String? (readonly)
Returns the value of attribute screenshot_url_expires_at.
48 49 50 |
# File 'lib/screenshotscout/responses.rb', line 48 def screenshot_url_expires_at @screenshot_url_expires_at end |