Class: Xberg::LateInteractionModelTypePlugin

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

Overview

In-process late-interaction backend registered via the plugin system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



330
331
332
# File 'lib/xberg/native.rb', line 330

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



347
348
349
# File 'lib/xberg/native.rb', line 347

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

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


341
# File 'lib/xberg/native.rb', line 341

def custom? = false

#plugin?Boolean

Returns:

  • (Boolean)


343
344
345
# File 'lib/xberg/native.rb', line 343

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

#preset?Boolean

Returns:

  • (Boolean)


339
# File 'lib/xberg/native.rb', line 339

def preset? = false