Class: Crawlberg::ScrapeResult
- Inherits:
-
Object
- Object
- Crawlberg::ScrapeResult
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#assets ⇒ Array[DownloadedAsset]
readonly
Returns the value of attribute assets.
-
#auth_header_sent ⇒ Boolean
readonly
Returns the value of attribute auth_header_sent.
-
#body_size ⇒ Integer
readonly
Returns the value of attribute body_size.
-
#browser ⇒ BrowserExtras?
readonly
Returns the value of attribute browser.
-
#browser_used ⇒ Boolean
readonly
Returns the value of attribute browser_used.
-
#content_type ⇒ String
readonly
Returns the value of attribute content_type.
-
#crawl_delay ⇒ Integer?
readonly
Returns the value of attribute crawl_delay.
-
#detected_charset ⇒ String?
readonly
Returns the value of attribute detected_charset.
-
#downloaded_document ⇒ DownloadedDocument?
readonly
Returns the value of attribute downloaded_document.
-
#extracted_data ⇒ String?
readonly
Returns the value of attribute extracted_data.
-
#extraction_meta ⇒ ExtractionMeta?
readonly
Returns the value of attribute extraction_meta.
-
#feeds ⇒ Array[FeedInfo]
readonly
Returns the value of attribute feeds.
-
#final_url ⇒ String
readonly
Returns the value of attribute final_url.
-
#html ⇒ String
readonly
Returns the value of attribute html.
-
#images ⇒ Array[ImageInfo]
readonly
Returns the value of attribute images.
-
#is_allowed ⇒ Boolean
readonly
Returns the value of attribute is_allowed.
-
#is_pdf ⇒ Boolean
readonly
Returns the value of attribute is_pdf.
-
#js_render_hint ⇒ Boolean
readonly
Returns the value of attribute js_render_hint.
-
#json_ld ⇒ Array[JsonLdEntry]
readonly
Returns the value of attribute json_ld.
-
#links ⇒ Array[LinkInfo]
readonly
Returns the value of attribute links.
-
#markdown ⇒ MarkdownResult?
readonly
Returns the value of attribute markdown.
-
#metadata ⇒ PageMetadata
readonly
Returns the value of attribute metadata.
-
#nofollow_detected ⇒ Boolean
readonly
Returns the value of attribute nofollow_detected.
-
#noindex_detected ⇒ Boolean
readonly
Returns the value of attribute noindex_detected.
-
#response_meta ⇒ ResponseMeta?
readonly
Returns the value of attribute response_meta.
-
#screenshot_base64 ⇒ String?
readonly
Returns the value of attribute screenshot_base64.
-
#status_code ⇒ Integer
readonly
Returns the value of attribute status_code.
-
#was_skipped ⇒ Boolean
readonly
Returns the value of attribute was_skipped.
-
#x_robots_tag ⇒ String?
readonly
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.
462 |
# File 'sig/types.rbs', line 462
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: String, ?extraction_meta: ExtractionMeta, ?screenshot_base64: String, ?downloaded_document: DownloadedDocument, ?browser: BrowserExtras) -> void
|
Instance Attribute Details
#assets ⇒ Array[DownloadedAsset] (readonly)
Returns the value of attribute assets.
452 453 454 |
# File 'sig/types.rbs', line 452 def assets @assets end |
#auth_header_sent ⇒ Boolean (readonly)
Returns the value of attribute auth_header_sent.
450 451 452 |
# File 'sig/types.rbs', line 450 def auth_header_sent @auth_header_sent end |
#body_size ⇒ Integer (readonly)
Returns the value of attribute body_size.
436 437 438 |
# File 'sig/types.rbs', line 436 def body_size @body_size end |
#browser ⇒ BrowserExtras? (readonly)
Returns the value of attribute browser.
460 461 462 |
# File 'sig/types.rbs', line 460 def browser @browser end |
#browser_used ⇒ Boolean (readonly)
Returns the value of attribute browser_used.
454 455 456 |
# File 'sig/types.rbs', line 454 def browser_used @browser_used end |
#content_type ⇒ String (readonly)
Returns the value of attribute content_type.
434 435 436 |
# File 'sig/types.rbs', line 434 def content_type @content_type end |
#crawl_delay ⇒ Integer? (readonly)
Returns the value of attribute crawl_delay.
443 444 445 |
# File 'sig/types.rbs', line 443 def crawl_delay @crawl_delay end |
#detected_charset ⇒ String? (readonly)
Returns the value of attribute detected_charset.
449 450 451 |
# File 'sig/types.rbs', line 449 def detected_charset @detected_charset end |
#downloaded_document ⇒ DownloadedDocument? (readonly)
Returns the value of attribute downloaded_document.
459 460 461 |
# File 'sig/types.rbs', line 459 def downloaded_document @downloaded_document end |
#extracted_data ⇒ String? (readonly)
Returns the value of attribute extracted_data.
456 457 458 |
# File 'sig/types.rbs', line 456 def extracted_data @extracted_data end |
#extraction_meta ⇒ ExtractionMeta? (readonly)
Returns the value of attribute extraction_meta.
457 458 459 |
# File 'sig/types.rbs', line 457 def @extraction_meta end |
#feeds ⇒ Array[FeedInfo] (readonly)
Returns the value of attribute feeds.
440 441 442 |
# File 'sig/types.rbs', line 440 def feeds @feeds end |
#final_url ⇒ String (readonly)
Returns the value of attribute final_url.
433 434 435 |
# File 'sig/types.rbs', line 433 def final_url @final_url end |
#html ⇒ String (readonly)
Returns the value of attribute html.
435 436 437 |
# File 'sig/types.rbs', line 435 def html @html end |
#images ⇒ Array[ImageInfo] (readonly)
Returns the value of attribute images.
439 440 441 |
# File 'sig/types.rbs', line 439 def images @images end |
#is_allowed ⇒ Boolean (readonly)
Returns the value of attribute is_allowed.
442 443 444 |
# File 'sig/types.rbs', line 442 def is_allowed @is_allowed end |
#is_pdf ⇒ Boolean (readonly)
Returns the value of attribute is_pdf.
447 448 449 |
# File 'sig/types.rbs', line 447 def is_pdf @is_pdf end |
#js_render_hint ⇒ Boolean (readonly)
Returns the value of attribute js_render_hint.
453 454 455 |
# File 'sig/types.rbs', line 453 def js_render_hint @js_render_hint end |
#json_ld ⇒ Array[JsonLdEntry] (readonly)
Returns the value of attribute json_ld.
441 442 443 |
# File 'sig/types.rbs', line 441 def json_ld @json_ld end |
#links ⇒ Array[LinkInfo] (readonly)
Returns the value of attribute links.
438 439 440 |
# File 'sig/types.rbs', line 438 def links @links end |
#markdown ⇒ MarkdownResult? (readonly)
Returns the value of attribute markdown.
455 456 457 |
# File 'sig/types.rbs', line 455 def markdown @markdown end |
#metadata ⇒ PageMetadata (readonly)
Returns the value of attribute metadata.
437 438 439 |
# File 'sig/types.rbs', line 437 def @metadata end |
#nofollow_detected ⇒ Boolean (readonly)
Returns the value of attribute nofollow_detected.
445 446 447 |
# File 'sig/types.rbs', line 445 def nofollow_detected @nofollow_detected end |
#noindex_detected ⇒ Boolean (readonly)
Returns the value of attribute noindex_detected.
444 445 446 |
# File 'sig/types.rbs', line 444 def noindex_detected @noindex_detected end |
#response_meta ⇒ ResponseMeta? (readonly)
Returns the value of attribute response_meta.
451 452 453 |
# File 'sig/types.rbs', line 451 def @response_meta end |
#screenshot_base64 ⇒ String? (readonly)
Returns the value of attribute screenshot_base64.
458 459 460 |
# File 'sig/types.rbs', line 458 def screenshot_base64 @screenshot_base64 end |
#status_code ⇒ Integer (readonly)
Returns the value of attribute status_code.
432 433 434 |
# File 'sig/types.rbs', line 432 def status_code @status_code end |
#was_skipped ⇒ Boolean (readonly)
Returns the value of attribute was_skipped.
448 449 450 |
# File 'sig/types.rbs', line 448 def was_skipped @was_skipped end |
#x_robots_tag ⇒ String? (readonly)
Returns the value of attribute x_robots_tag.
446 447 448 |
# File 'sig/types.rbs', line 446 def x_robots_tag @x_robots_tag end |