Sha256: b4a6d403994fbe923b4647b34104661c711b1ba81e8c2fd2375921ba142607c0

Contents?: true

Size: 855 Bytes

Versions: 6

Compression:

Stored size: 855 Bytes

Contents

# frozen_string_literal: true

require_relative './list'
require_relative './map'
require_relative './known_value'
require_relative './unknown_value'

module RubyTerraform
  module Models
    module Values
      class << self
        def known(value, sensitive: false)
          KnownValue.new(value, sensitive: sensitive)
        end

        def unknown(sensitive: false)
          UnknownValue.new(sensitive: sensitive)
        end

        def list(value, sensitive: false)
          List.new(value, sensitive: sensitive)
        end

        def empty_list(sensitive: false)
          list([], sensitive: sensitive)
        end

        def map(value, sensitive: false)
          Map.new(value, sensitive: sensitive)
        end

        def empty_map(sensitive: false)
          map({}, sensitive: sensitive)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-terraform-1.7.0.pre.6 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.5 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.4 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.3 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.2 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.1 lib/ruby_terraform/models/values.rb