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