Class: Bora::Cfn::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/bora/cfn/output.rb

Instance Method Summary collapse

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

#keyObject



8
9
10
# File 'lib/bora/cfn/output.rb', line 8

def key
  @output.output_key
end

#to_sObject



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

#valueObject



12
13
14
# File 'lib/bora/cfn/output.rb', line 12

def value
  @output.output_value
end