Class: Hackle::TargetKey

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, name:) ⇒ TargetKey

Returns a new instance of TargetKey.

Parameters:



37
38
39
40
# File 'lib/hackle/internal/model/target.rb', line 37

def initialize(type:, name:)
  @type = type
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

attr_reader :type, :name

#typeTargetKeyType (readonly)

Returns:



33
34
35
# File 'lib/hackle/internal/model/target.rb', line 33

def type
  @type
end