Class: Kreuzcrawl::CrawlEventError
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::CrawlEventError
- Extended by:
- T::Sig
- Includes:
- CrawlEvent
- Defined in:
- lib/kreuzcrawl/native.rb
Overview
An error occurred while crawling a URL.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#url ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
178 179 180 |
# File 'lib/kreuzcrawl/native.rb', line 178 def error @error end |
#url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
178 179 180 |
# File 'lib/kreuzcrawl/native.rb', line 178 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
202 203 204 |
# File 'lib/kreuzcrawl/native.rb', line 202 def self.from_hash(hash) new(url: hash[:url] || hash["url"], error: hash[:error] || hash["error"]) end |
Instance Method Details
#complete? ⇒ Boolean
197 |
# File 'lib/kreuzcrawl/native.rb', line 197 def complete? = false |
#error? ⇒ Boolean
194 |
# File 'lib/kreuzcrawl/native.rb', line 194 def error? = true |
#page? ⇒ Boolean
191 |
# File 'lib/kreuzcrawl/native.rb', line 191 def page? = false |