Class: Crawlberg::CrawlEventPage
- Inherits:
-
Data
- Object
- Data
- Crawlberg::CrawlEventPage
- Extended by:
- T::Sig
- Includes:
- CrawlEvent
- Defined in:
- lib/crawlberg/native.rb
Overview
A single page has been crawled.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#result ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
128 129 130 |
# File 'lib/crawlberg/native.rb', line 128 def result @result end |
Class Method Details
.from_hash(hash) ⇒ Object
144 145 146 |
# File 'lib/crawlberg/native.rb', line 144 def self.from_hash(hash) new(result: hash[:result] || hash["result"]) end |
Instance Method Details
#complete? ⇒ Boolean
140 141 142 |
# File 'lib/crawlberg/native.rb', line 140 def complete? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#error? ⇒ Boolean
138 |
# File 'lib/crawlberg/native.rb', line 138 def error? = false |
#page? ⇒ Boolean
136 |
# File 'lib/crawlberg/native.rb', line 136 def page? = true |