Class: Hackle::TargetCondition

Inherits:
Object
  • Object
show all
Defined in:
lib/hackle/internal/model/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, match:) ⇒ TargetCondition

Returns a new instance of TargetCondition.



22
23
24
25
# File 'lib/hackle/internal/model/target.rb', line 22

def initialize(key:, match:)
  @key = key
  @match = match
end

Instance Attribute Details

#keyTargetKey (readonly)

Returns:



20
21
22
# File 'lib/hackle/internal/model/target.rb', line 20

def key
  @key
end

#matchObject (readonly)

Returns the value of attribute match.



20
# File 'lib/hackle/internal/model/target.rb', line 20

attr_reader :key, :match