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
145 146 147 |
# File 'lib/crawlberg/native.rb', line 145 def result @result end |
Class Method Details
.from_hash(hash) ⇒ Object
162 163 164 |
# File 'lib/crawlberg/native.rb', line 162 def self.from_hash(hash) new(result: hash[:result] || hash["result"]) end |
Instance Method Details
#complete? ⇒ Boolean
158 159 160 |
# File 'lib/crawlberg/native.rb', line 158 def complete? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#error? ⇒ Boolean
156 |
# File 'lib/crawlberg/native.rb', line 156 def error? = false |
#page? ⇒ Boolean
154 |
# File 'lib/crawlberg/native.rb', line 154 def page? = true |