Sha256: 6350d483d515c1c8676271ad84d38486e61c2bc39c422d1d219ba4e7c6905314
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
# frozen_string_literal: true require_relative '../value_equality' module RubyTerraform module Models class UnknownValue include ValueEquality def initialize(sensitive: false) @sensitive = sensitive end def value nil end alias unbox value def known? false end def sensitive? @sensitive end def render(**_) '(known after apply)' end def state [@sensitive] end def inspect sensitive = sensitive? ? 'sensitive' : 'non-sensitive' "? (unknown, #{sensitive})" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-terraform-1.7.0.pre.8 | lib/ruby_terraform/models/unknown_value.rb |
ruby-terraform-1.7.0.pre.7 | lib/ruby_terraform/models/unknown_value.rb |