Class: Kubernetes::Namespace
- Inherits:
-
Object
- Object
- Kubernetes::Namespace
- Defined in:
- lib/kubernetes/namespace.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data) ⇒ Namespace
constructor
A new instance of Namespace.
- #name ⇒ Object
Constructor Details
#initialize(data) ⇒ Namespace
Returns a new instance of Namespace.
9 10 11 12 13 |
# File 'lib/kubernetes/namespace.rb', line 9 def initialize(data) @metadata = Metadata.new(data.fetch("metadata")) @spec = NamespaceSpec.new(data.fetch("spec")) @status = NamespaceStatus.new(data.fetch("status")) end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/kubernetes/namespace.rb', line 7 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
7 8 9 |
# File 'lib/kubernetes/namespace.rb', line 7 def spec @spec end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/kubernetes/namespace.rb', line 7 def status @status end |
Instance Method Details
#name ⇒ Object
15 16 17 |
# File 'lib/kubernetes/namespace.rb', line 15 def name .name end |