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



134
135
136
# File 'lib/kreuzcrawl/native.rb', line 134

def result
  @result
end

Class Method Details

.from_hash(hash) ⇒ Object



150
151
152
# File 'lib/kreuzcrawl/native.rb', line 150

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

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


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

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

#error?Boolean

Returns:

  • (Boolean)


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

def error? = false

#page?Boolean

Returns:

  • (Boolean)


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

def page? = true