Sha256: eadbe56223e430aeefe50c22623b44cbee8ace9f3129a80b75603cd27344044d

Contents?: true

Size: 910 Bytes

Versions: 10

Compression:

Stored size: 910 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:)
        end

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

        def omitted(sensitive: false)
          OmittedValue.new(sensitive:)
        end

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

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

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-terraform-1.9.0.pre.2 lib/ruby_terraform/models/values.rb
ruby-terraform-1.9.0.pre.1 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.13 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.12 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.11 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.10 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.9 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.8 lib/ruby_terraform/models/values.rb
ruby-terraform-1.8.0.pre.7 lib/ruby_terraform/models/values.rb