Class: Kubernetes::PodTemplateSpec
- Inherits:
-
Object
- Object
- Kubernetes::PodTemplateSpec
- Defined in:
- lib/kubernetes/pod_template_spec.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ PodTemplateSpec
constructor
A new instance of PodTemplateSpec.
Constructor Details
#initialize(data) ⇒ PodTemplateSpec
Returns a new instance of PodTemplateSpec.
6 7 8 9 |
# File 'lib/kubernetes/pod_template_spec.rb', line 6 def initialize(data) @metadata = Metadata.new(data.fetch("metadata")) @spec = PodSpec.new(data.fetch("spec")) end |