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
172 173 174 |
# File 'lib/crawlberg/native.rb', line 172 def result @result end |
Class Method Details
.from_hash(hash) ⇒ Object
189 190 191 |
# File 'lib/crawlberg/native.rb', line 189 def self.from_hash(hash) new(result: hash[:result] || hash["result"]) end |
Instance Method Details
#complete? ⇒ Boolean
185 186 187 |
# File 'lib/crawlberg/native.rb', line 185 def complete? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#error? ⇒ Boolean
183 |
# File 'lib/crawlberg/native.rb', line 183 def error? = false |
#page? ⇒ Boolean
181 |
# File 'lib/crawlberg/native.rb', line 181 def page? = true |