Class: Hackle::TargetKey
- Inherits:
-
Object
- Object
- Hackle::TargetKey
- Defined in:
- lib/hackle/internal/model/target.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
- #type ⇒ TargetKeyType readonly
Instance Method Summary collapse
-
#initialize(type:, name:) ⇒ TargetKey
constructor
A new instance of TargetKey.
Constructor Details
#initialize(type:, name:) ⇒ TargetKey
Returns a new instance of TargetKey.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
33 |
# File 'lib/hackle/internal/model/target.rb', line 33 attr_reader :type, :name |
#type ⇒ TargetKeyType (readonly)
33 34 35 |
# File 'lib/hackle/internal/model/target.rb', line 33 def type @type end |