Class: Bora::Cfn::Parameter
- Inherits:
-
Object
- Object
- Bora::Cfn::Parameter
- Defined in:
- lib/bora/cfn/parameter.rb
Instance Method Summary collapse
-
#initialize(parameter) ⇒ Parameter
constructor
A new instance of Parameter.
- #key ⇒ Object
- #to_s ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(parameter) ⇒ Parameter
Returns a new instance of Parameter.
4 5 6 |
# File 'lib/bora/cfn/parameter.rb', line 4 def initialize(parameter) @parameter = parameter end |
Instance Method Details
#key ⇒ Object
8 9 10 |
# File 'lib/bora/cfn/parameter.rb', line 8 def key @parameter.parameter_key end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/bora/cfn/parameter.rb', line 16 def to_s "#{key} - #{value}" end |
#value ⇒ Object
12 13 14 |
# File 'lib/bora/cfn/parameter.rb', line 12 def value @parameter.parameter_value end |