Class: Crawlberg::ScrapeResult
- Inherits:
-
Object
- Object
- Crawlberg::ScrapeResult
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#assets ⇒ Array[DownloadedAsset]?
Returns the value of attribute assets.
-
#auth_header_sent ⇒ Boolean?
Returns the value of attribute auth_header_sent.
-
#body_size ⇒ Integer?
Returns the value of attribute body_size.
-
#browser ⇒ BrowserExtras?
Returns the value of attribute browser.
-
#browser_used ⇒ Boolean?
Returns the value of attribute browser_used.
-
#content_type ⇒ String?
Returns the value of attribute content_type.
-
#crawl_delay ⇒ Integer?
Returns the value of attribute crawl_delay.
-
#detected_charset ⇒ String?
Returns the value of attribute detected_charset.
-
#downloaded_document ⇒ DownloadedDocument?
Returns the value of attribute downloaded_document.
-
#extracted_data ⇒ json_value?
Returns the value of attribute extracted_data.
-
#extraction_meta ⇒ ExtractionMeta?
Returns the value of attribute extraction_meta.
-
#feeds ⇒ Array[FeedInfo]?
Returns the value of attribute feeds.
-
#final_url ⇒ String?
Returns the value of attribute final_url.
-
#html ⇒ String?
Returns the value of attribute html.
-
#images ⇒ Array[ImageInfo]?
Returns the value of attribute images.
-
#is_allowed ⇒ Boolean?
Returns the value of attribute is_allowed.
-
#is_pdf ⇒ Boolean?
Returns the value of attribute is_pdf.
-
#js_render_hint ⇒ Boolean?
Returns the value of attribute js_render_hint.
-
#json_ld ⇒ Array[JsonLdEntry]?
Returns the value of attribute json_ld.
-
#links ⇒ Array[LinkInfo]?
Returns the value of attribute links.
-
#markdown ⇒ MarkdownResult?
Returns the value of attribute markdown.
-
#metadata ⇒ PageMetadata?
Returns the value of attribute metadata.
-
#nofollow_detected ⇒ Boolean?
Returns the value of attribute nofollow_detected.
-
#noindex_detected ⇒ Boolean?
Returns the value of attribute noindex_detected.
-
#response_meta ⇒ ResponseMeta?
Returns the value of attribute response_meta.
-
#status_code ⇒ Integer?
Returns the value of attribute status_code.
-
#was_skipped ⇒ Boolean?
Returns the value of attribute was_skipped.
-
#x_robots_tag ⇒ String?
Returns the value of attribute x_robots_tag.
Instance Method Summary collapse
-
#initialize ⇒ ScrapeResult
constructor
A new instance of ScrapeResult.
Constructor Details
#initialize ⇒ ScrapeResult
Returns a new instance of ScrapeResult.
180 |
# File 'sig/types.rbs', line 180
def initialize: (?status_code: Integer, ?final_url: String, ?content_type: String, ?html: String, ?body_size: Integer, ?metadata: PageMetadata, ?links: Array[LinkInfo], ?images: Array[ImageInfo], ?feeds: Array[FeedInfo], ?json_ld: Array[JsonLdEntry], ?is_allowed: bool, ?crawl_delay: Integer, ?noindex_detected: bool, ?nofollow_detected: bool, ?x_robots_tag: String, ?is_pdf: bool, ?was_skipped: bool, ?detected_charset: String, ?auth_header_sent: bool, ?response_meta: ResponseMeta, ?assets: Array[DownloadedAsset], ?js_render_hint: bool, ?browser_used: bool, ?markdown: MarkdownResult, ?extracted_data: json_value, ?extraction_meta: ExtractionMeta, ?downloaded_document: DownloadedDocument, ?browser: BrowserExtras) -> void
|
Instance Attribute Details
#assets ⇒ Array[DownloadedAsset]?
Returns the value of attribute assets.
171 172 173 |
# File 'sig/types.rbs', line 171 def assets @assets end |
#auth_header_sent ⇒ Boolean?
Returns the value of attribute auth_header_sent.
169 170 171 |
# File 'sig/types.rbs', line 169 def auth_header_sent @auth_header_sent end |
#body_size ⇒ Integer?
Returns the value of attribute body_size.
155 156 157 |
# File 'sig/types.rbs', line 155 def body_size @body_size end |
#browser ⇒ BrowserExtras?
Returns the value of attribute browser.
178 179 180 |
# File 'sig/types.rbs', line 178 def browser @browser end |
#browser_used ⇒ Boolean?
Returns the value of attribute browser_used.
173 174 175 |
# File 'sig/types.rbs', line 173 def browser_used @browser_used end |
#content_type ⇒ String?
Returns the value of attribute content_type.
153 154 155 |
# File 'sig/types.rbs', line 153 def content_type @content_type end |
#crawl_delay ⇒ Integer?
Returns the value of attribute crawl_delay.
162 163 164 |
# File 'sig/types.rbs', line 162 def crawl_delay @crawl_delay end |
#detected_charset ⇒ String?
Returns the value of attribute detected_charset.
168 169 170 |
# File 'sig/types.rbs', line 168 def detected_charset @detected_charset end |
#downloaded_document ⇒ DownloadedDocument?
Returns the value of attribute downloaded_document.
177 178 179 |
# File 'sig/types.rbs', line 177 def downloaded_document @downloaded_document end |
#extracted_data ⇒ json_value?
Returns the value of attribute extracted_data.
175 176 177 |
# File 'sig/types.rbs', line 175 def extracted_data @extracted_data end |
#extraction_meta ⇒ ExtractionMeta?
Returns the value of attribute extraction_meta.
176 177 178 |
# File 'sig/types.rbs', line 176 def @extraction_meta end |
#feeds ⇒ Array[FeedInfo]?
Returns the value of attribute feeds.
159 160 161 |
# File 'sig/types.rbs', line 159 def feeds @feeds end |
#final_url ⇒ String?
Returns the value of attribute final_url.
152 153 154 |
# File 'sig/types.rbs', line 152 def final_url @final_url end |
#html ⇒ String?
Returns the value of attribute html.
154 155 156 |
# File 'sig/types.rbs', line 154 def html @html end |
#images ⇒ Array[ImageInfo]?
Returns the value of attribute images.
158 159 160 |
# File 'sig/types.rbs', line 158 def images @images end |
#is_allowed ⇒ Boolean?
Returns the value of attribute is_allowed.
161 162 163 |
# File 'sig/types.rbs', line 161 def is_allowed @is_allowed end |
#is_pdf ⇒ Boolean?
Returns the value of attribute is_pdf.
166 167 168 |
# File 'sig/types.rbs', line 166 def is_pdf @is_pdf end |
#js_render_hint ⇒ Boolean?
Returns the value of attribute js_render_hint.
172 173 174 |
# File 'sig/types.rbs', line 172 def js_render_hint @js_render_hint end |
#json_ld ⇒ Array[JsonLdEntry]?
Returns the value of attribute json_ld.
160 161 162 |
# File 'sig/types.rbs', line 160 def json_ld @json_ld end |
#links ⇒ Array[LinkInfo]?
Returns the value of attribute links.
157 158 159 |
# File 'sig/types.rbs', line 157 def links @links end |
#markdown ⇒ MarkdownResult?
Returns the value of attribute markdown.
174 175 176 |
# File 'sig/types.rbs', line 174 def markdown @markdown end |
#metadata ⇒ PageMetadata?
Returns the value of attribute metadata.
156 157 158 |
# File 'sig/types.rbs', line 156 def @metadata end |
#nofollow_detected ⇒ Boolean?
Returns the value of attribute nofollow_detected.
164 165 166 |
# File 'sig/types.rbs', line 164 def nofollow_detected @nofollow_detected end |
#noindex_detected ⇒ Boolean?
Returns the value of attribute noindex_detected.
163 164 165 |
# File 'sig/types.rbs', line 163 def noindex_detected @noindex_detected end |
#response_meta ⇒ ResponseMeta?
Returns the value of attribute response_meta.
170 171 172 |
# File 'sig/types.rbs', line 170 def @response_meta end |
#status_code ⇒ Integer?
Returns the value of attribute status_code.
151 152 153 |
# File 'sig/types.rbs', line 151 def status_code @status_code end |
#was_skipped ⇒ Boolean?
Returns the value of attribute was_skipped.
167 168 169 |
# File 'sig/types.rbs', line 167 def was_skipped @was_skipped end |
#x_robots_tag ⇒ String?
Returns the value of attribute x_robots_tag.
165 166 167 |
# File 'sig/types.rbs', line 165 def x_robots_tag @x_robots_tag end |