Class: Bora::Cfn::Parameter

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

Instance Method Summary collapse

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

#keyObject



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

def key
  @parameter.parameter_key
end

#to_sObject



16
17
18
# File 'lib/bora/cfn/parameter.rb', line 16

def to_s
  "#{key} - #{value}"
end

#valueObject



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

def value
  @parameter.parameter_value
end