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
152 153 154 |
# File 'lib/kreuzcrawl/native.rb', line 152 def result @result end |
Class Method Details
.from_hash(hash) ⇒ Object
172 173 174 |
# File 'lib/kreuzcrawl/native.rb', line 172 def self.from_hash(hash) new(result: hash[:result] || hash["result"]) end |
Instance Method Details
#complete? ⇒ Boolean
167 |
# File 'lib/kreuzcrawl/native.rb', line 167 def complete? = false |
#error? ⇒ Boolean
164 |
# File 'lib/kreuzcrawl/native.rb', line 164 def error? = false |
#page? ⇒ Boolean
161 |
# File 'lib/kreuzcrawl/native.rb', line 161 def page? = true |