Class: Murk::Model::SimpleStackParameter

Inherits:
Object
  • Object
show all
Defined in:
lib/murk/model/stack_parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ SimpleStackParameter



9
10
11
12
# File 'lib/murk/model/stack_parameter.rb', line 9

def initialize(key, value)
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'lib/murk/model/stack_parameter.rb', line 7

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/murk/model/stack_parameter.rb', line 7

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



18
19
20
# File 'lib/murk/model/stack_parameter.rb', line 18

def ==(other)
  @key == other.key && @value == other.value
end

#resolve(stack_collection) ⇒ Object



14
15
16
# File 'lib/murk/model/stack_parameter.rb', line 14

def resolve(stack_collection)
  @value
end