Class: ScreenshotScout::CaptureOptions
- Inherits:
-
Object
- Object
- ScreenshotScout::CaptureOptions
- Defined in:
- lib/screenshotscout/capture_options.rb,
sig/screenshotscout.rbs
Overview
Keyword-initialized options for one Screenshot Scout capture.
Instance Attribute Summary collapse
-
#block_ads ⇒ Boolean?
readonly
Returns the value of attribute block_ads.
-
#block_chat_widgets ⇒ Boolean?
readonly
Returns the value of attribute block_chat_widgets.
-
#block_cookie_banners ⇒ Boolean?
readonly
Returns the value of attribute block_cookie_banners.
-
#bypass_csp ⇒ Boolean?
readonly
Returns the value of attribute bypass_csp.
-
#cache ⇒ Boolean?
readonly
Returns the value of attribute cache.
-
#cache_key ⇒ String?
readonly
Returns the value of attribute cache_key.
-
#cache_ttl ⇒ Integer?
readonly
Returns the value of attribute cache_ttl.
-
#click_all_selectors ⇒ Array[String]?
readonly
Returns the value of attribute click_all_selectors.
-
#click_selectors ⇒ Array[String]?
readonly
Returns the value of attribute click_selectors.
-
#clip_height ⇒ Integer?
readonly
Returns the value of attribute clip_height.
-
#clip_width ⇒ Integer?
readonly
Returns the value of attribute clip_width.
-
#clip_x ⇒ Integer?
readonly
Returns the value of attribute clip_x.
-
#clip_y ⇒ Integer?
readonly
Returns the value of attribute clip_y.
-
#color_scheme ⇒ String?
readonly
Returns the value of attribute color_scheme.
-
#cookies ⇒ Array[String]?
readonly
Returns the value of attribute cookies.
-
#country ⇒ String?
readonly
Returns the value of attribute country.
-
#delay ⇒ Integer?
readonly
Returns the value of attribute delay.
-
#device ⇒ String?
readonly
Returns the value of attribute device.
-
#device_has_touch ⇒ Boolean?
readonly
Returns the value of attribute device_has_touch.
-
#device_is_mobile ⇒ Boolean?
readonly
Returns the value of attribute device_is_mobile.
-
#device_scale_factor ⇒ number?
readonly
Returns the value of attribute device_scale_factor.
-
#device_user_agent ⇒ String?
readonly
Returns the value of attribute device_user_agent.
-
#device_viewport_height ⇒ Integer?
readonly
Returns the value of attribute device_viewport_height.
-
#device_viewport_width ⇒ Integer?
readonly
Returns the value of attribute device_viewport_width.
-
#format ⇒ String?
readonly
Returns the value of attribute format.
-
#full_page ⇒ Boolean?
readonly
Returns the value of attribute full_page.
-
#full_page_max_height ⇒ Integer?
readonly
Returns the value of attribute full_page_max_height.
-
#full_page_pre_scroll ⇒ Boolean?
readonly
Returns the value of attribute full_page_pre_scroll.
-
#full_page_pre_scroll_step ⇒ Integer?
readonly
Returns the value of attribute full_page_pre_scroll_step.
-
#full_page_pre_scroll_step_delay ⇒ Integer?
readonly
Returns the value of attribute full_page_pre_scroll_step_delay.
-
#geolocation_accuracy ⇒ number?
readonly
Returns the value of attribute geolocation_accuracy.
-
#geolocation_latitude ⇒ number?
readonly
Returns the value of attribute geolocation_latitude.
-
#geolocation_longitude ⇒ number?
readonly
Returns the value of attribute geolocation_longitude.
-
#headers ⇒ Array[String]?
readonly
Returns the value of attribute headers.
-
#hide_selectors ⇒ Array[String]?
readonly
Returns the value of attribute hide_selectors.
-
#image_allow_upscale ⇒ Boolean?
readonly
Returns the value of attribute image_allow_upscale.
-
#image_anchor ⇒ String?
readonly
Returns the value of attribute image_anchor.
-
#image_background ⇒ String?
readonly
Returns the value of attribute image_background.
-
#image_height ⇒ Integer?
readonly
Returns the value of attribute image_height.
-
#image_mode ⇒ String?
readonly
Returns the value of attribute image_mode.
-
#image_quality ⇒ Integer?
readonly
Returns the value of attribute image_quality.
-
#image_width ⇒ Integer?
readonly
Returns the value of attribute image_width.
-
#inject_css ⇒ Array[String]?
readonly
Returns the value of attribute inject_css.
-
#inject_js ⇒ Array[String]?
readonly
Returns the value of attribute inject_js.
-
#media_type ⇒ String?
readonly
Returns the value of attribute media_type.
-
#navigation_timeout ⇒ Integer?
readonly
Returns the value of attribute navigation_timeout.
-
#pdf_landscape ⇒ Boolean?
readonly
Returns the value of attribute pdf_landscape.
-
#pdf_margin ⇒ String?
readonly
Returns the value of attribute pdf_margin.
-
#pdf_margin_bottom ⇒ String?
readonly
Returns the value of attribute pdf_margin_bottom.
-
#pdf_margin_left ⇒ String?
readonly
Returns the value of attribute pdf_margin_left.
-
#pdf_margin_right ⇒ String?
readonly
Returns the value of attribute pdf_margin_right.
-
#pdf_margin_top ⇒ String?
readonly
Returns the value of attribute pdf_margin_top.
-
#pdf_paper_format ⇒ String?
readonly
Returns the value of attribute pdf_paper_format.
-
#pdf_print_background ⇒ Boolean?
readonly
Returns the value of attribute pdf_print_background.
-
#pdf_scale ⇒ number?
readonly
Returns the value of attribute pdf_scale.
-
#proxy ⇒ String?
readonly
Returns the value of attribute proxy.
-
#reduced_motion ⇒ Boolean?
readonly
Returns the value of attribute reduced_motion.
-
#response_type ⇒ String?
readonly
Returns the value of attribute response_type.
-
#selector ⇒ String?
readonly
Returns the value of attribute selector.
-
#storage_bucket ⇒ String?
readonly
Returns the value of attribute storage_bucket.
-
#storage_endpoint ⇒ String?
readonly
Returns the value of attribute storage_endpoint.
-
#storage_mode ⇒ String?
readonly
Returns the value of attribute storage_mode.
-
#storage_object_key ⇒ String?
readonly
Returns the value of attribute storage_object_key.
-
#storage_region ⇒ String?
readonly
Returns the value of attribute storage_region.
-
#timeout ⇒ Integer?
readonly
Returns the value of attribute timeout.
-
#timezone ⇒ String?
readonly
Returns the value of attribute timezone.
-
#wait_until ⇒ String?
readonly
Returns the value of attribute wait_until.
Instance Method Summary collapse
-
#initialize(**options) ⇒ CaptureOptions
constructor
A new instance of CaptureOptions.
Constructor Details
#initialize(**options) ⇒ CaptureOptions
Returns a new instance of CaptureOptions.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/screenshotscout/capture_options.rb', line 23 def initialize(**) unknown = .keys - ATTRIBUTE_NAMES unless unknown.empty? option = unknown.first raise SerializationError.new("Unknown capture option \"#{option}\".", option: option) end ATTRIBUTE_NAMES.each do |name| instance_variable_set("@#{name}", [name]) end end |
Instance Attribute Details
#block_ads ⇒ Boolean? (readonly)
Returns the value of attribute block_ads.
109 110 111 |
# File 'sig/screenshotscout.rbs', line 109 def block_ads @block_ads end |
#block_chat_widgets ⇒ Boolean? (readonly)
Returns the value of attribute block_chat_widgets.
110 111 112 |
# File 'sig/screenshotscout.rbs', line 110 def @block_chat_widgets end |
#block_cookie_banners ⇒ Boolean? (readonly)
Returns the value of attribute block_cookie_banners.
108 109 110 |
# File 'sig/screenshotscout.rbs', line 108 def @block_cookie_banners end |
#bypass_csp ⇒ Boolean? (readonly)
Returns the value of attribute bypass_csp.
116 117 118 |
# File 'sig/screenshotscout.rbs', line 116 def bypass_csp @bypass_csp end |
#cache ⇒ Boolean? (readonly)
Returns the value of attribute cache.
138 139 140 |
# File 'sig/screenshotscout.rbs', line 138 def cache @cache end |
#cache_key ⇒ String? (readonly)
Returns the value of attribute cache_key.
140 141 142 |
# File 'sig/screenshotscout.rbs', line 140 def cache_key @cache_key end |
#cache_ttl ⇒ Integer? (readonly)
Returns the value of attribute cache_ttl.
139 140 141 |
# File 'sig/screenshotscout.rbs', line 139 def cache_ttl @cache_ttl end |
#click_all_selectors ⇒ Array[String]? (readonly)
Returns the value of attribute click_all_selectors.
113 114 115 |
# File 'sig/screenshotscout.rbs', line 113 def click_all_selectors @click_all_selectors end |
#click_selectors ⇒ Array[String]? (readonly)
Returns the value of attribute click_selectors.
112 113 114 |
# File 'sig/screenshotscout.rbs', line 112 def click_selectors @click_selectors end |
#clip_height ⇒ Integer? (readonly)
Returns the value of attribute clip_height.
121 122 123 |
# File 'sig/screenshotscout.rbs', line 121 def clip_height @clip_height end |
#clip_width ⇒ Integer? (readonly)
Returns the value of attribute clip_width.
120 121 122 |
# File 'sig/screenshotscout.rbs', line 120 def clip_width @clip_width end |
#clip_x ⇒ Integer? (readonly)
Returns the value of attribute clip_x.
118 119 120 |
# File 'sig/screenshotscout.rbs', line 118 def clip_x @clip_x end |
#clip_y ⇒ Integer? (readonly)
Returns the value of attribute clip_y.
119 120 121 |
# File 'sig/screenshotscout.rbs', line 119 def clip_y @clip_y end |
#color_scheme ⇒ String? (readonly)
Returns the value of attribute color_scheme.
101 102 103 |
# File 'sig/screenshotscout.rbs', line 101 def color_scheme @color_scheme end |
#cookies ⇒ Array[String]? (readonly)
Returns the value of attribute cookies.
86 87 88 |
# File 'sig/screenshotscout.rbs', line 86 def @cookies end |
#country ⇒ String? (readonly)
Returns the value of attribute country.
81 82 83 |
# File 'sig/screenshotscout.rbs', line 81 def country @country end |
#delay ⇒ Integer? (readonly)
Returns the value of attribute delay.
91 92 93 |
# File 'sig/screenshotscout.rbs', line 91 def delay @delay end |
#device ⇒ String? (readonly)
Returns the value of attribute device.
92 93 94 |
# File 'sig/screenshotscout.rbs', line 92 def device @device end |
#device_has_touch ⇒ Boolean? (readonly)
Returns the value of attribute device_has_touch.
97 98 99 |
# File 'sig/screenshotscout.rbs', line 97 def device_has_touch @device_has_touch end |
#device_is_mobile ⇒ Boolean? (readonly)
Returns the value of attribute device_is_mobile.
96 97 98 |
# File 'sig/screenshotscout.rbs', line 96 def device_is_mobile @device_is_mobile end |
#device_scale_factor ⇒ number? (readonly)
Returns the value of attribute device_scale_factor.
95 96 97 |
# File 'sig/screenshotscout.rbs', line 95 def device_scale_factor @device_scale_factor end |
#device_user_agent ⇒ String? (readonly)
Returns the value of attribute device_user_agent.
98 99 100 |
# File 'sig/screenshotscout.rbs', line 98 def device_user_agent @device_user_agent end |
#device_viewport_height ⇒ Integer? (readonly)
Returns the value of attribute device_viewport_height.
94 95 96 |
# File 'sig/screenshotscout.rbs', line 94 def @device_viewport_height end |
#device_viewport_width ⇒ Integer? (readonly)
Returns the value of attribute device_viewport_width.
93 94 95 |
# File 'sig/screenshotscout.rbs', line 93 def @device_viewport_width end |
#format ⇒ String? (readonly)
Returns the value of attribute format.
79 80 81 |
# File 'sig/screenshotscout.rbs', line 79 def format @format end |
#full_page ⇒ Boolean? (readonly)
Returns the value of attribute full_page.
103 104 105 |
# File 'sig/screenshotscout.rbs', line 103 def full_page @full_page end |
#full_page_max_height ⇒ Integer? (readonly)
Returns the value of attribute full_page_max_height.
107 108 109 |
# File 'sig/screenshotscout.rbs', line 107 def full_page_max_height @full_page_max_height end |
#full_page_pre_scroll ⇒ Boolean? (readonly)
Returns the value of attribute full_page_pre_scroll.
104 105 106 |
# File 'sig/screenshotscout.rbs', line 104 def full_page_pre_scroll @full_page_pre_scroll end |
#full_page_pre_scroll_step ⇒ Integer? (readonly)
Returns the value of attribute full_page_pre_scroll_step.
105 106 107 |
# File 'sig/screenshotscout.rbs', line 105 def full_page_pre_scroll_step @full_page_pre_scroll_step end |
#full_page_pre_scroll_step_delay ⇒ Integer? (readonly)
Returns the value of attribute full_page_pre_scroll_step_delay.
106 107 108 |
# File 'sig/screenshotscout.rbs', line 106 def full_page_pre_scroll_step_delay @full_page_pre_scroll_step_delay end |
#geolocation_accuracy ⇒ number? (readonly)
Returns the value of attribute geolocation_accuracy.
85 86 87 |
# File 'sig/screenshotscout.rbs', line 85 def geolocation_accuracy @geolocation_accuracy end |
#geolocation_latitude ⇒ number? (readonly)
Returns the value of attribute geolocation_latitude.
83 84 85 |
# File 'sig/screenshotscout.rbs', line 83 def geolocation_latitude @geolocation_latitude end |
#geolocation_longitude ⇒ number? (readonly)
Returns the value of attribute geolocation_longitude.
84 85 86 |
# File 'sig/screenshotscout.rbs', line 84 def geolocation_longitude @geolocation_longitude end |
#headers ⇒ Array[String]? (readonly)
Returns the value of attribute headers.
87 88 89 |
# File 'sig/screenshotscout.rbs', line 87 def headers @headers end |
#hide_selectors ⇒ Array[String]? (readonly)
Returns the value of attribute hide_selectors.
111 112 113 |
# File 'sig/screenshotscout.rbs', line 111 def hide_selectors @hide_selectors end |
#image_allow_upscale ⇒ Boolean? (readonly)
Returns the value of attribute image_allow_upscale.
126 127 128 |
# File 'sig/screenshotscout.rbs', line 126 def image_allow_upscale @image_allow_upscale end |
#image_anchor ⇒ String? (readonly)
Returns the value of attribute image_anchor.
125 126 127 |
# File 'sig/screenshotscout.rbs', line 125 def image_anchor @image_anchor end |
#image_background ⇒ String? (readonly)
Returns the value of attribute image_background.
127 128 129 |
# File 'sig/screenshotscout.rbs', line 127 def image_background @image_background end |
#image_height ⇒ Integer? (readonly)
Returns the value of attribute image_height.
123 124 125 |
# File 'sig/screenshotscout.rbs', line 123 def image_height @image_height end |
#image_mode ⇒ String? (readonly)
Returns the value of attribute image_mode.
124 125 126 |
# File 'sig/screenshotscout.rbs', line 124 def image_mode @image_mode end |
#image_quality ⇒ Integer? (readonly)
Returns the value of attribute image_quality.
128 129 130 |
# File 'sig/screenshotscout.rbs', line 128 def image_quality @image_quality end |
#image_width ⇒ Integer? (readonly)
Returns the value of attribute image_width.
122 123 124 |
# File 'sig/screenshotscout.rbs', line 122 def image_width @image_width end |
#inject_css ⇒ Array[String]? (readonly)
Returns the value of attribute inject_css.
114 115 116 |
# File 'sig/screenshotscout.rbs', line 114 def inject_css @inject_css end |
#inject_js ⇒ Array[String]? (readonly)
Returns the value of attribute inject_js.
115 116 117 |
# File 'sig/screenshotscout.rbs', line 115 def inject_js @inject_js end |
#media_type ⇒ String? (readonly)
Returns the value of attribute media_type.
100 101 102 |
# File 'sig/screenshotscout.rbs', line 100 def media_type @media_type end |
#navigation_timeout ⇒ Integer? (readonly)
Returns the value of attribute navigation_timeout.
90 91 92 |
# File 'sig/screenshotscout.rbs', line 90 def @navigation_timeout end |
#pdf_landscape ⇒ Boolean? (readonly)
Returns the value of attribute pdf_landscape.
130 131 132 |
# File 'sig/screenshotscout.rbs', line 130 def pdf_landscape @pdf_landscape end |
#pdf_margin ⇒ String? (readonly)
Returns the value of attribute pdf_margin.
132 133 134 |
# File 'sig/screenshotscout.rbs', line 132 def pdf_margin @pdf_margin end |
#pdf_margin_bottom ⇒ String? (readonly)
Returns the value of attribute pdf_margin_bottom.
135 136 137 |
# File 'sig/screenshotscout.rbs', line 135 def pdf_margin_bottom @pdf_margin_bottom end |
#pdf_margin_left ⇒ String? (readonly)
Returns the value of attribute pdf_margin_left.
136 137 138 |
# File 'sig/screenshotscout.rbs', line 136 def pdf_margin_left @pdf_margin_left end |
#pdf_margin_right ⇒ String? (readonly)
Returns the value of attribute pdf_margin_right.
134 135 136 |
# File 'sig/screenshotscout.rbs', line 134 def pdf_margin_right @pdf_margin_right end |
#pdf_margin_top ⇒ String? (readonly)
Returns the value of attribute pdf_margin_top.
133 134 135 |
# File 'sig/screenshotscout.rbs', line 133 def pdf_margin_top @pdf_margin_top end |
#pdf_paper_format ⇒ String? (readonly)
Returns the value of attribute pdf_paper_format.
129 130 131 |
# File 'sig/screenshotscout.rbs', line 129 def pdf_paper_format @pdf_paper_format end |
#pdf_print_background ⇒ Boolean? (readonly)
Returns the value of attribute pdf_print_background.
131 132 133 |
# File 'sig/screenshotscout.rbs', line 131 def pdf_print_background @pdf_print_background end |
#pdf_scale ⇒ number? (readonly)
Returns the value of attribute pdf_scale.
137 138 139 |
# File 'sig/screenshotscout.rbs', line 137 def pdf_scale @pdf_scale end |
#proxy ⇒ String? (readonly)
Returns the value of attribute proxy.
82 83 84 |
# File 'sig/screenshotscout.rbs', line 82 def proxy @proxy end |
#reduced_motion ⇒ Boolean? (readonly)
Returns the value of attribute reduced_motion.
102 103 104 |
# File 'sig/screenshotscout.rbs', line 102 def reduced_motion @reduced_motion end |
#response_type ⇒ String? (readonly)
Returns the value of attribute response_type.
80 81 82 |
# File 'sig/screenshotscout.rbs', line 80 def response_type @response_type end |
#selector ⇒ String? (readonly)
Returns the value of attribute selector.
117 118 119 |
# File 'sig/screenshotscout.rbs', line 117 def selector @selector end |
#storage_bucket ⇒ String? (readonly)
Returns the value of attribute storage_bucket.
143 144 145 |
# File 'sig/screenshotscout.rbs', line 143 def storage_bucket @storage_bucket end |
#storage_endpoint ⇒ String? (readonly)
Returns the value of attribute storage_endpoint.
142 143 144 |
# File 'sig/screenshotscout.rbs', line 142 def storage_endpoint @storage_endpoint end |
#storage_mode ⇒ String? (readonly)
Returns the value of attribute storage_mode.
141 142 143 |
# File 'sig/screenshotscout.rbs', line 141 def storage_mode @storage_mode end |
#storage_object_key ⇒ String? (readonly)
Returns the value of attribute storage_object_key.
145 146 147 |
# File 'sig/screenshotscout.rbs', line 145 def storage_object_key @storage_object_key end |
#storage_region ⇒ String? (readonly)
Returns the value of attribute storage_region.
144 145 146 |
# File 'sig/screenshotscout.rbs', line 144 def storage_region @storage_region end |
#timeout ⇒ Integer? (readonly)
Returns the value of attribute timeout.
88 89 90 |
# File 'sig/screenshotscout.rbs', line 88 def timeout @timeout end |
#timezone ⇒ String? (readonly)
Returns the value of attribute timezone.
99 100 101 |
# File 'sig/screenshotscout.rbs', line 99 def timezone @timezone end |
#wait_until ⇒ String? (readonly)
Returns the value of attribute wait_until.
89 90 91 |
# File 'sig/screenshotscout.rbs', line 89 def wait_until @wait_until end |