Sha256: 679fb6cb7d07ba7b45f6a810c6a51fc85bcfbcd58a9155fe58fdca07b65f325f

Contents?: true

Size: 990 Bytes

Versions: 15

Compression:

Stored size: 990 Bytes

Contents

# frozen_string_literal: true

require_relative './list'
require_relative './map'
require_relative './known_value'
require_relative './unknown_value'
require_relative './omitted_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 omitted(sensitive: false)
          OmittedValue.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

15 entries across 15 versions & 1 rubygems

Version Path
ruby-terraform-1.8.0.pre.1 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.19 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.18 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.17 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.16 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.15 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.14 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.13 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.12 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.11 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.10 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.9 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.8 lib/ruby_terraform/models/values.rb
ruby-terraform-1.7.0.pre.7 lib/ruby_terraform/models/values.rb