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



357
358
359
# File 'lib/xberg/native.rb', line 357

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



374
375
376
# File 'lib/xberg/native.rb', line 374

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

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


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

def custom? = false

#plugin?Boolean

Returns:

  • (Boolean)


370
371
372
# File 'lib/xberg/native.rb', line 370

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

#preset?Boolean

Returns:

  • (Boolean)


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

def preset? = false