Class: Kubernetes::Namespace

Inherits:
Object
  • Object
show all
Defined in:
lib/kubernetes/namespace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#metadataObject (readonly)

Returns the value of attribute metadata.



7
8
9
# File 'lib/kubernetes/namespace.rb', line 7

def 
  @metadata
end

#specObject (readonly)

Returns the value of attribute spec.



7
8
9
# File 'lib/kubernetes/namespace.rb', line 7

def spec
  @spec
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/kubernetes/namespace.rb', line 7

def status
  @status
end

Instance Method Details

#nameObject



15
16
17
# File 'lib/kubernetes/namespace.rb', line 15

def name
  .name
end