Class: RubyTerraform::Options::Values::KeyValue

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_terraform/options/values/key_value.rb

Instance Method Summary collapse

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

#renderObject



17
18
19
# File 'lib/ruby_terraform/options/values/key_value.rb', line 17

def render
  "#{key}=#{value.render}"
end

#resolveObject



13
14
15
# File 'lib/ruby_terraform/options/values/key_value.rb', line 13

def resolve
  { key => value.resolve }
end