Class: Kbt::VolumeMounts
- Inherits:
-
Object
- Object
- Kbt::VolumeMounts
- Defined in:
- lib/kbt/volume_mounts.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ VolumeMounts
constructor
A new instance of VolumeMounts.
- #to_h ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ VolumeMounts
Returns a new instance of VolumeMounts.
4 5 6 |
# File 'lib/kbt/volume_mounts.rb', line 4 def initialize(args = {}) @template = args.fetch(:template) end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/kbt/volume_mounts.rb', line 3 def command @command end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/kbt/volume_mounts.rb', line 3 def env @env end |
#image ⇒ Object (readonly)
Returns the value of attribute image.
3 4 5 |
# File 'lib/kbt/volume_mounts.rb', line 3 def image @image end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/kbt/volume_mounts.rb', line 3 def name @name end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
3 4 5 |
# File 'lib/kbt/volume_mounts.rb', line 3 def template @template end |
Instance Method Details
#to_h ⇒ Object
8 9 10 |
# File 'lib/kbt/volume_mounts.rb', line 8 def to_h template.value end |