Class: Waterworks::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/waterworks/containers/pipeline_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject

Returns the value of attribute key.



52
53
54
# File 'lib/waterworks/containers/pipeline_definition.rb', line 52

def key
  @key
end

#valueObject

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_hashObject



59
60
61
62
63
64
# File 'lib/waterworks/containers/pipeline_definition.rb', line 59

def to_hash
  {
    key: @key,
    value: @value
  }
end