Class: Kbt::VolumeMounts

Inherits:
Object
  • Object
show all
Defined in:
lib/kbt/volume_mounts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



3
4
5
# File 'lib/kbt/volume_mounts.rb', line 3

def command
  @command
end

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/kbt/volume_mounts.rb', line 3

def env
  @env
end

#imageObject (readonly)

Returns the value of attribute image.



3
4
5
# File 'lib/kbt/volume_mounts.rb', line 3

def image
  @image
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/kbt/volume_mounts.rb', line 3

def name
  @name
end

#templateObject (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_hObject



8
9
10
# File 'lib/kbt/volume_mounts.rb', line 8

def to_h
  template.value
end