Class: RubyTerraform::Options::Values::KeyValue
- Inherits:
-
Object
- Object
- RubyTerraform::Options::Values::KeyValue
- Defined in:
- lib/ruby_terraform/options/values/key_value.rb
Instance Method Summary collapse
-
#initialize(key, value) ⇒ KeyValue
constructor
A new instance of KeyValue.
- #render ⇒ Object
- #resolve ⇒ Object
Constructor Details
#initialize(key, value) ⇒ KeyValue
Returns a new instance of KeyValue.
9 10 11 |
# File 'lib/ruby_terraform/options/values/key_value.rb', line 9 def initialize(key, value) super(key:, value:) end |
Instance Method Details
#render ⇒ Object
17 18 19 |
# File 'lib/ruby_terraform/options/values/key_value.rb', line 17 def render "#{key}=#{value.render}" end |
#resolve ⇒ Object
13 14 15 |
# File 'lib/ruby_terraform/options/values/key_value.rb', line 13 def resolve { key => value.resolve } end |