Module: RubyTerraform::Options::Values
- Defined in:
- lib/ruby_terraform/options/values.rb,
lib/ruby_terraform/options/values/base.rb,
lib/ruby_terraform/options/values/string.rb,
lib/ruby_terraform/options/values/boolean.rb,
lib/ruby_terraform/options/values/complex.rb,
lib/ruby_terraform/options/values/key_value.rb
Defined Under Namespace
Classes: Base, Boolean, Complex, KeyValue, String
Class Method Summary
collapse
Class Method Details
.boolean(value) ⇒ Object
11
12
13
|
# File 'lib/ruby_terraform/options/values.rb', line 11
def self.boolean(value)
Boolean.new(value)
end
|
.complex(value) ⇒ Object
19
20
21
|
# File 'lib/ruby_terraform/options/values.rb', line 19
def self.complex(value)
Complex.new(value)
end
|
.key_value(key, value) ⇒ Object
23
24
25
|
# File 'lib/ruby_terraform/options/values.rb', line 23
def self.key_value(key, value)
KeyValue.new(key, value)
end
|
.resolve(type) ⇒ Object
27
28
29
30
31
32
33
34
35
|
# File 'lib/ruby_terraform/options/values.rb', line 27
def self.resolve(type)
case type
when :string then Values::String
when :boolean then Values::Boolean
when :complex then Values::Complex
when :key_value then Values::KeyValue
else type
end
end
|
.string(value) ⇒ Object
15
16
17
|
# File 'lib/ruby_terraform/options/values.rb', line 15
def self.string(value)
String.new(value)
end
|