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)


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

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)


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

def browser_used
  @browser_used
end

#cookiesArray[CookieInfo]?

Returns the value of attribute cookies.

Returns:



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

def cookies
  @cookies
end

#errorString?

Returns the value of attribute error.

Returns:

  • (String, nil)


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

def error
  @error
end

#final_urlString?

Returns the value of attribute final_url.

Returns:

  • (String, nil)


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

def final_url
  @final_url
end

#pagesArray[CrawlPageResult]?

Returns the value of attribute pages.

Returns:



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

def pages
  @pages
end

#redirect_countInteger?

Returns the value of attribute redirect_count.

Returns:

  • (Integer, nil)


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

def redirect_count
  @redirect_count
end

#stayed_on_domainBoolean?

Returns the value of attribute stayed_on_domain.

Returns:

  • (Boolean, nil)


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

def stayed_on_domain
  @stayed_on_domain
end

#was_skippedBoolean?

Returns the value of attribute was_skipped.

Returns:

  • (Boolean, nil)


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

def was_skipped
  @was_skipped
end

Instance Method Details

#unique_normalized_urlsInteger

Returns:

  • (Integer)


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

def unique_normalized_urls: () -> Integer