Class: Kreuzcrawl::CrawlEventPage
- Inherits:
-
Data
- Object
- Data
- Kreuzcrawl::CrawlEventPage
- Extended by:
- T::Sig
- Includes:
- CrawlEvent
- Defined in:
- lib/kreuzcrawl/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
131 132 133 |
# File 'lib/kreuzcrawl/native.rb', line 131 def result @result end |
Class Method Details
.from_hash(hash) ⇒ Object
147 148 149 |
# File 'lib/kreuzcrawl/native.rb', line 147 def self.from_hash(hash) new(result: hash[:result] || hash["result"]) end |
Instance Method Details
#complete? ⇒ Boolean
143 144 145 |
# File 'lib/kreuzcrawl/native.rb', line 143 def complete? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#error? ⇒ Boolean
141 |
# File 'lib/kreuzcrawl/native.rb', line 141 def error? = false |
#page? ⇒ Boolean
139 |
# File 'lib/kreuzcrawl/native.rb', line 139 def page? = true |