Class: Kreuzcrawl::CrawlEventPage

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

Overview

A single page has been crawled.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



131
132
133
# File 'lib/kreuzcrawl/native.rb', line 131

def result
  @result
end

Class Method Details

.from_hash(hash) ⇒ Object



147
148
149
# File 'lib/kreuzcrawl/native.rb', line 147

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

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


143
144
145
# File 'lib/kreuzcrawl/native.rb', line 143

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

#error?Boolean

Returns:

  • (Boolean)


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

def error? = false

#page?Boolean

Returns:

  • (Boolean)


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

def page? = true