class Dapp::Kube::Kubernetes::Client::Resource::Base

Attributes

spec[R]

Public Class Methods

new(spec) click to toggle source
# File lib/dapp/kube/kubernetes/client/resource/base.rb, line 7
def initialize(spec)
  @spec = spec
end

Public Instance Methods

annotations() click to toggle source
# File lib/dapp/kube/kubernetes/client/resource/base.rb, line 23
def annotations
  metadata.fetch('annotations', {})
end
metadata() click to toggle source
# File lib/dapp/kube/kubernetes/client/resource/base.rb, line 11
def metadata
  spec.fetch('metadata', {})
end
name() click to toggle source
# File lib/dapp/kube/kubernetes/client/resource/base.rb, line 15
def name
  metadata['name']
end
status() click to toggle source
# File lib/dapp/kube/kubernetes/client/resource/base.rb, line 27
def status
  spec.fetch('status', {})
end
uid() click to toggle source
# File lib/dapp/kube/kubernetes/client/resource/base.rb, line 19
def uid
  metadata['uid']
end