Class: Crawlberg::CrawlPageResult

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCrawlPageResult

Returns a new instance of CrawlPageResult.

Parameters:

  • url: (String)
  • normalized_url: (String)
  • status_code: (Integer)
  • content_type: (String)
  • html: (String)
  • body_size: (Integer)
  • metadata: (PageMetadata)
  • links: (Array[LinkInfo])
  • images: (Array[ImageInfo])
  • feeds: (Array[FeedInfo])
  • json_ld: (Array[JsonLdEntry])
  • depth: (Integer)
  • stayed_on_domain: (Boolean)
  • was_skipped: (Boolean)
  • is_pdf: (Boolean)
  • detected_charset: (String)
  • markdown: (MarkdownResult)
  • extracted_data: (String)
  • extraction_meta: (ExtractionMeta)
  • downloaded_document: (DownloadedDocument)
  • browser_used: (Boolean)


220
# File 'sig/types.rbs', line 220

def initialize: (?url: String, ?normalized_url: String, ?status_code: Integer, ?content_type: String, ?html: String, ?body_size: Integer, ?metadata: PageMetadata, ?links: Array[LinkInfo], ?images: Array[ImageInfo], ?feeds: Array[FeedInfo], ?json_ld: Array[JsonLdEntry], ?depth: Integer, ?stayed_on_domain: bool, ?was_skipped: bool, ?is_pdf: bool, ?detected_charset: String, ?markdown: MarkdownResult, ?extracted_data: String, ?extraction_meta: ExtractionMeta, ?downloaded_document: DownloadedDocument, ?browser_used: bool) -> void

Instance Attribute Details

#body_sizeInteger (readonly)

Returns the value of attribute body_size.

Returns:

  • (Integer)


203
204
205
# File 'sig/types.rbs', line 203

def body_size
  @body_size
end

#browser_usedBoolean (readonly)

Returns the value of attribute browser_used.

Returns:

  • (Boolean)


218
219
220
# File 'sig/types.rbs', line 218

def browser_used
  @browser_used
end

#content_typeString (readonly)

Returns the value of attribute content_type.

Returns:

  • (String)


201
202
203
# File 'sig/types.rbs', line 201

def content_type
  @content_type
end

#depthInteger (readonly)

Returns the value of attribute depth.

Returns:

  • (Integer)


209
210
211
# File 'sig/types.rbs', line 209

def depth
  @depth
end

#detected_charsetString? (readonly)

Returns the value of attribute detected_charset.

Returns:

  • (String, nil)


213
214
215
# File 'sig/types.rbs', line 213

def detected_charset
  @detected_charset
end

#downloaded_documentDownloadedDocument? (readonly)

Returns the value of attribute downloaded_document.

Returns:



217
218
219
# File 'sig/types.rbs', line 217

def downloaded_document
  @downloaded_document
end

#extracted_dataString? (readonly)

Returns the value of attribute extracted_data.

Returns:

  • (String, nil)


215
216
217
# File 'sig/types.rbs', line 215

def extracted_data
  @extracted_data
end

#extraction_metaExtractionMeta? (readonly)

Returns the value of attribute extraction_meta.

Returns:



216
217
218
# File 'sig/types.rbs', line 216

def extraction_meta
  @extraction_meta
end

#feedsArray[FeedInfo] (readonly)

Returns the value of attribute feeds.

Returns:



207
208
209
# File 'sig/types.rbs', line 207

def feeds
  @feeds
end

#htmlString (readonly)

Returns the value of attribute html.

Returns:

  • (String)


202
203
204
# File 'sig/types.rbs', line 202

def html
  @html
end

#imagesArray[ImageInfo] (readonly)

Returns the value of attribute images.

Returns:



206
207
208
# File 'sig/types.rbs', line 206

def images
  @images
end

#is_pdfBoolean (readonly)

Returns the value of attribute is_pdf.

Returns:

  • (Boolean)


212
213
214
# File 'sig/types.rbs', line 212

def is_pdf
  @is_pdf
end

#json_ldArray[JsonLdEntry] (readonly)

Returns the value of attribute json_ld.

Returns:



208
209
210
# File 'sig/types.rbs', line 208

def json_ld
  @json_ld
end

Returns the value of attribute links.

Returns:



205
206
207
# File 'sig/types.rbs', line 205

def links
  @links
end

#markdownMarkdownResult? (readonly)

Returns the value of attribute markdown.

Returns:



214
215
216
# File 'sig/types.rbs', line 214

def markdown
  @markdown
end

#metadataPageMetadata (readonly)

Returns the value of attribute metadata.

Returns:



204
205
206
# File 'sig/types.rbs', line 204

def 
  @metadata
end

#normalized_urlString (readonly)

Returns the value of attribute normalized_url.

Returns:

  • (String)


199
200
201
# File 'sig/types.rbs', line 199

def normalized_url
  @normalized_url
end

#status_codeInteger (readonly)

Returns the value of attribute status_code.

Returns:

  • (Integer)


200
201
202
# File 'sig/types.rbs', line 200

def status_code
  @status_code
end

#stayed_on_domainBoolean (readonly)

Returns the value of attribute stayed_on_domain.

Returns:

  • (Boolean)


210
211
212
# File 'sig/types.rbs', line 210

def stayed_on_domain
  @stayed_on_domain
end

#urlString (readonly)

Returns the value of attribute url.

Returns:

  • (String)


198
199
200
# File 'sig/types.rbs', line 198

def url
  @url
end

#was_skippedBoolean (readonly)

Returns the value of attribute was_skipped.

Returns:

  • (Boolean)


211
212
213
# File 'sig/types.rbs', line 211

def was_skipped
  @was_skipped
end