Class: Hackle::EvaluatorKey
- Inherits:
-
Object
- Object
- Hackle::EvaluatorKey
- Defined in:
- lib/hackle/internal/evaluation/evaluator/evaluator.rb
Instance Attribute Summary collapse
- #id ⇒ Integer readonly
- #type ⇒ String readonly
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(type:, id:) ⇒ EvaluatorKey
constructor
A new instance of EvaluatorKey.
Constructor Details
#initialize(type:, id:) ⇒ EvaluatorKey
Returns a new instance of EvaluatorKey.
108 109 110 111 |
# File 'lib/hackle/internal/evaluation/evaluator/evaluator.rb', line 108 def initialize(type:, id:) @type = type @id = id end |
Instance Attribute Details
#id ⇒ Integer (readonly)
104 105 106 |
# File 'lib/hackle/internal/evaluation/evaluator/evaluator.rb', line 104 def id @id end |
#type ⇒ String (readonly)
101 102 103 |
# File 'lib/hackle/internal/evaluation/evaluator/evaluator.rb', line 101 def type @type end |
Instance Method Details
#==(other) ⇒ Object
113 114 115 |
# File 'lib/hackle/internal/evaluation/evaluator/evaluator.rb', line 113 def ==(other) other.is_a?(EvaluatorKey) && type == other.type && id == other.id end |