Sha256: 1d6ac423442747347686179e5f27a249fc0f361c3b28575b7f5e2fc01a5c1128

Contents?: true

Size: 412 Bytes

Versions: 7

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

require 'immutable-struct'

module RubyTerraform
  module Options
    module Values
      class KeyValue < ImmutableStruct.new(:key, :value)
        def initialize(key, value)
          super(key:, value:)
        end

        def resolve
          { key => value.resolve }
        end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby-terraform-1.9.0.pre.2 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.9.0.pre.1 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.8.0 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.8.0.pre.13 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.8.0.pre.12 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.8.0.pre.11 lib/ruby_terraform/options/values/key_value.rb
ruby-terraform-1.8.0.pre.10 lib/ruby_terraform/options/values/key_value.rb