Class: ScreenshotScout::CaptureResult
- Inherits:
-
Object
- Object
- ScreenshotScout::CaptureResult
- Defined in:
- lib/screenshotscout/responses.rb,
sig/screenshotscout.rbs
Overview
Structured capture result returned when response_type is json.
Instance Attribute Summary collapse
-
#additional_fields ⇒ Hash[String, json_value]
readonly
Returns the value of attribute additional_fields.
-
#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.
Instance Method Summary collapse
-
#initialize(screenshot_url:, screenshot_url_expires_at:, cache_status:, additional_fields:) ⇒ CaptureResult
constructor
A new instance of CaptureResult.
Constructor Details
#initialize(screenshot_url:, screenshot_url_expires_at:, cache_status:, additional_fields:) ⇒ CaptureResult
Returns a new instance of CaptureResult.
64 65 66 67 68 69 70 |
# File 'lib/screenshotscout/responses.rb', line 64 def initialize(screenshot_url:, screenshot_url_expires_at:, cache_status:, additional_fields:) @screenshot_url = screenshot_url @screenshot_url_expires_at = screenshot_url_expires_at @cache_status = cache_status @additional_fields = additional_fields.freeze freeze end |
Instance Attribute Details
#additional_fields ⇒ Hash[String, json_value] (readonly)
Returns the value of attribute additional_fields.
62 63 64 |
# File 'lib/screenshotscout/responses.rb', line 62 def additional_fields @additional_fields end |
#cache_status ⇒ String? (readonly)
Returns the value of attribute cache_status.
62 63 64 |
# File 'lib/screenshotscout/responses.rb', line 62 def cache_status @cache_status end |
#screenshot_url ⇒ String? (readonly)
Returns the value of attribute screenshot_url.
62 63 64 |
# File 'lib/screenshotscout/responses.rb', line 62 def screenshot_url @screenshot_url end |
#screenshot_url_expires_at ⇒ String? (readonly)
Returns the value of attribute screenshot_url_expires_at.
62 63 64 |
# File 'lib/screenshotscout/responses.rb', line 62 def screenshot_url_expires_at @screenshot_url_expires_at end |