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)


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

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?

Returns the value of attribute browser_used.

Returns:

  • (Boolean, nil)


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

def browser_used
  @browser_used
end

#cookiesArray[CookieInfo]?

Returns the value of attribute cookies.

Returns:



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

def cookies
  @cookies
end

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


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

def error
  @error
end

#final_urlString?

Returns the value of attribute final_url.

Returns:

  • (String, nil)


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

def final_url
  @final_url
end

#pagesArray[CrawlPageResult]?

Returns the value of attribute pages.

Returns:



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

def pages
  @pages
end

#redirect_countInteger?

Returns the value of attribute redirect_count.

Returns:

  • (Integer, nil)


221
222
223
# File 'sig/types.rbs', line 221

def redirect_count
  @redirect_count
end

#stayed_on_domainBoolean?

Returns the value of attribute stayed_on_domain.

Returns:

  • (Boolean, nil)


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

def stayed_on_domain
  @stayed_on_domain
end

#was_skippedBoolean?

Returns the value of attribute was_skipped.

Returns:

  • (Boolean, nil)


222
223
224
# File 'sig/types.rbs', line 222

def was_skipped
  @was_skipped
end

Instance Method Details

#unique_normalized_urlsInteger

Returns:

  • (Integer)


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

def unique_normalized_urls: () -> Integer