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)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2975
2976
2977
# File 'lib/xberg/native.rb', line 2975

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



2991
2992
2993
# File 'lib/xberg/native.rb', line 2991

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

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


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

def custom? = false

#plugin?Boolean

Returns:

  • (Boolean)


2987
2988
2989
# File 'lib/xberg/native.rb', line 2987

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

#preset?Boolean

Returns:

  • (Boolean)


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

def preset? = false