Class: Crawlberg::CrawlEventError
- Inherits:
-
Data
- Object
- Data
- Crawlberg::CrawlEventError
- Extended by:
- T::Sig
- Includes:
- CrawlEvent
- Defined in:
- lib/crawlberg/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
167 168 169 |
# File 'lib/crawlberg/native.rb', line 167 def error @error end |
#url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
167 168 169 |
# File 'lib/crawlberg/native.rb', line 167 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
188 189 190 |
# File 'lib/crawlberg/native.rb', line 188 def self.from_hash(hash) new(url: hash[:url] || hash["url"], error: hash[:error] || hash["error"]) end |
Instance Method Details
#complete? ⇒ Boolean
184 185 186 |
# File 'lib/crawlberg/native.rb', line 184 def complete? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#error? ⇒ Boolean
182 |
# File 'lib/crawlberg/native.rb', line 182 def error? = true |
#page? ⇒ Boolean
180 |
# File 'lib/crawlberg/native.rb', line 180 def page? = false |