Class: Attractor::RegistryEntry
- Inherits:
-
Object
- Object
- Attractor::RegistryEntry
- Defined in:
- lib/attractor/registry_entry.rb
Instance Attribute Summary collapse
-
#calculator_class ⇒ Object
readonly
Returns the value of attribute calculator_class.
-
#detector_class ⇒ Object
readonly
Returns the value of attribute detector_class.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, detector_class:, calculator_class:) ⇒ RegistryEntry
constructor
A new instance of RegistryEntry.
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_class ⇒ Object (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_class ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/attractor/registry_entry.rb', line 3 def type @type end |