Class: Murk::Model::SimpleStackParameter
- Inherits:
-
Object
- Object
- Murk::Model::SimpleStackParameter
- Defined in:
- lib/murk/model/stack_parameter.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(key, value, env: nil) ⇒ SimpleStackParameter
constructor
A new instance of SimpleStackParameter.
- #resolve ⇒ Object
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
#env ⇒ Object (readonly)
Returns the value of attribute env.
7 8 9 |
# File 'lib/murk/model/stack_parameter.rb', line 7 def env @env end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/murk/model/stack_parameter.rb', line 7 def key @key end |
#value ⇒ Object (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 |
#resolve ⇒ Object
15 16 17 |
# File 'lib/murk/model/stack_parameter.rb', line 15 def resolve @value end |