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, env: nil) ⇒ SimpleStackParameter

Returns a new instance of SimpleStackParameter.



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

def initialize(key, value, env: nil)
  @key = key
  @value = value
  @env = env
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



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

def env
  @env
end

#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



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

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

#resolveObject



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

def resolve
  @value
end