Sha256: b643265d7d7efc49e63ba19330776ff731b307638d46939cae33b6188d362fd8

Contents?: true

Size: 329 Bytes

Versions: 52

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

require 'json'

require_relative 'base'

module RubyTerraform
  module Options
    module Values
      class Complex < Base
        def resolve
          @value
        end

        def render
          @value.is_a?(::String) ? @value : JSON.generate(value)
        end
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
ruby-terraform-1.9.0.pre.2 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.9.0.pre.1 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.13 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.12 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.11 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.10 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.9 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.8 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.7 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.6 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.5 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.4 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.3 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.2 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.8.0.pre.1 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.7.0 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.7.0.pre.19 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.7.0.pre.18 lib/ruby_terraform/options/values/complex.rb
ruby-terraform-1.7.0.pre.17 lib/ruby_terraform/options/values/complex.rb