Class: Hackle::EvaluatorKey

Inherits:
Object
  • Object
show all
Defined in:
lib/hackle/internal/evaluation/evaluator/evaluator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, id:) ⇒ EvaluatorKey

Returns a new instance of EvaluatorKey.

Parameters:

  • type (String)
  • id (Integer)


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

#idInteger (readonly)

Returns:

  • (Integer)


104
105
106
# File 'lib/hackle/internal/evaluation/evaluator/evaluator.rb', line 104

def id
  @id
end

#typeString (readonly)

Returns:

  • (String)


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