Class: Kreuzcrawl::CrawlEventComplete

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
CrawlEvent
Defined in:
lib/kreuzcrawl/native.rb

Overview

The crawl has completed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pages_crawledObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



176
177
178
# File 'lib/kreuzcrawl/native.rb', line 176

def pages_crawled
  @pages_crawled
end

Class Method Details

.from_hash(hash) ⇒ Object



192
193
194
# File 'lib/kreuzcrawl/native.rb', line 192

def self.from_hash(hash)
  new(pages_crawled: hash[:pages_crawled] || hash["pages_crawled"])
end

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


188
189
190
# File 'lib/kreuzcrawl/native.rb', line 188

def complete? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]

#error?Boolean

Returns:

  • (Boolean)


186
# File 'lib/kreuzcrawl/native.rb', line 186

def error? = false

#page?Boolean

Returns:

  • (Boolean)


184
# File 'lib/kreuzcrawl/native.rb', line 184

def page? = false