Class: ScreenshotScout::CaptureResult

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

Overview

Structured capture result returned when response_type is json.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fieldsHash[String, json_value] (readonly)

Returns the value of attribute additional_fields.

Returns:

  • (Hash[String, json_value])


62
63
64
# File 'lib/screenshotscout/responses.rb', line 62

def additional_fields
  @additional_fields
end

#cache_statusString? (readonly)

Returns the value of attribute cache_status.

Returns:

  • (String, nil)


62
63
64
# File 'lib/screenshotscout/responses.rb', line 62

def cache_status
  @cache_status
end

#screenshot_urlString? (readonly)

Returns the value of attribute screenshot_url.

Returns:

  • (String, nil)


62
63
64
# File 'lib/screenshotscout/responses.rb', line 62

def screenshot_url
  @screenshot_url
end

#screenshot_url_expires_atString? (readonly)

Returns the value of attribute screenshot_url_expires_at.

Returns:

  • (String, nil)


62
63
64
# File 'lib/screenshotscout/responses.rb', line 62

def screenshot_url_expires_at
  @screenshot_url_expires_at
end