Class: Crawlberg::CrawlResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCrawlResult

Returns a new instance of CrawlResult.

Parameters:

  • pages: (Array[CrawlPageResult])
  • final_url: (String)
  • redirect_count: (Integer)
  • was_skipped: (Boolean)
  • error: (String)
  • cookies: (Array[CookieInfo])
  • stayed_on_domain: (Boolean)
  • browser_used: (Boolean)


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

def initialize: (?pages: Array[CrawlPageResult], ?final_url: String, ?redirect_count: Integer, ?was_skipped: bool, ?error: String, ?cookies: Array[CookieInfo], ?stayed_on_domain: bool, ?browser_used: bool) -> void

Instance Attribute Details

#browser_usedBoolean (readonly)

Returns the value of attribute browser_used.

Returns:

  • (Boolean)


231
232
233
# File 'sig/types.rbs', line 231

def browser_used
  @browser_used
end

#cookiesArray[CookieInfo] (readonly)

Returns the value of attribute cookies.

Returns:



229
230
231
# File 'sig/types.rbs', line 229

def cookies
  @cookies
end

#errorString? (readonly)

Returns the value of attribute error.

Returns:

  • (String, nil)


228
229
230
# File 'sig/types.rbs', line 228

def error
  @error
end

#final_urlString (readonly)

Returns the value of attribute final_url.

Returns:

  • (String)


225
226
227
# File 'sig/types.rbs', line 225

def final_url
  @final_url
end

#pagesArray[CrawlPageResult] (readonly)

Returns the value of attribute pages.

Returns:



224
225
226
# File 'sig/types.rbs', line 224

def pages
  @pages
end

#redirect_countInteger (readonly)

Returns the value of attribute redirect_count.

Returns:

  • (Integer)


226
227
228
# File 'sig/types.rbs', line 226

def redirect_count
  @redirect_count
end

#stayed_on_domainBoolean (readonly)

Returns the value of attribute stayed_on_domain.

Returns:

  • (Boolean)


230
231
232
# File 'sig/types.rbs', line 230

def stayed_on_domain
  @stayed_on_domain
end

#was_skippedBoolean (readonly)

Returns the value of attribute was_skipped.

Returns:

  • (Boolean)


227
228
229
# File 'sig/types.rbs', line 227

def was_skipped
  @was_skipped
end

Instance Method Details

#unique_normalized_urlsInteger

Returns:

  • (Integer)


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

def unique_normalized_urls: () -> Integer