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



152
153
154
# File 'lib/kreuzcrawl/native.rb', line 152

def result
  @result
end

Class Method Details

.from_hash(hash) ⇒ Object



172
173
174
# File 'lib/kreuzcrawl/native.rb', line 172

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

Instance Method Details

#complete?Boolean

Returns:

  • (Boolean)


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

def complete? = false

#error?Boolean

Returns:

  • (Boolean)


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

def error? = false

#page?Boolean

Returns:

  • (Boolean)


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

def page? = true