Class: Attractor::RegistryEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/attractor/registry_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, detector_class:, calculator_class:) ⇒ RegistryEntry

Returns a new instance of RegistryEntry.



5
6
7
8
9
# File 'lib/attractor/registry_entry.rb', line 5

def initialize(type:, detector_class:, calculator_class:)
  @type = type
  @detector_class = detector_class
  @calculator_class = calculator_class
end

Instance Attribute Details

#calculator_classObject (readonly)

Returns the value of attribute calculator_class.



3
4
5
# File 'lib/attractor/registry_entry.rb', line 3

def calculator_class
  @calculator_class
end

#detector_classObject (readonly)

Returns the value of attribute detector_class.



3
4
5
# File 'lib/attractor/registry_entry.rb', line 3

def detector_class
  @detector_class
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/attractor/registry_entry.rb', line 3

def type
  @type
end