Class: Waterworks::Tag
- Inherits:
-
Object
- Object
- Waterworks::Tag
- Defined in:
- lib/waterworks/containers/pipeline_definition.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Tag
constructor
A new instance of Tag.
- #to_hash ⇒ Object
Constructor Details
#initialize(key, value) ⇒ Tag
54 55 56 57 |
# File 'lib/waterworks/containers/pipeline_definition.rb', line 54 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
52 53 54 |
# File 'lib/waterworks/containers/pipeline_definition.rb', line 52 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
52 53 54 |
# File 'lib/waterworks/containers/pipeline_definition.rb', line 52 def value @value end |
Instance Method Details
#to_hash ⇒ Object
59 60 61 62 63 64 |
# File 'lib/waterworks/containers/pipeline_definition.rb', line 59 def to_hash { key: @key, value: @value } end |