Class: Kreuzberg::EnrichStatusFailed

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
EnrichStatus
Defined in:
lib/kreuzberg/native.rb

Overview

Processing failed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4008
4009
4010
# File 'lib/kreuzberg/native.rb', line 4008

def error
  @error
end

Class Method Details

.from_hash(hash) ⇒ Object



4024
4025
4026
# File 'lib/kreuzberg/native.rb', line 4024

def self.from_hash(hash)
  new(error: hash[:error] || hash["error"])
end

Instance Method Details

#completed?Boolean

Returns:

  • (Boolean)


4018
# File 'lib/kreuzberg/native.rb', line 4018

def completed? = false

#failed?Boolean

Returns:

  • (Boolean)


4020
4021
4022
# File 'lib/kreuzberg/native.rb', line 4020

def failed? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]

#pending?Boolean

Returns:

  • (Boolean)


4016
# File 'lib/kreuzberg/native.rb', line 4016

def pending? = false