Class: KubernetesReferences::LocalObjectReference

Inherits:
API
  • Object
show all
Defined in:
lib/kubernetes_references/local_object_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ LocalObjectReference

Returns a new instance of LocalObjectReference.



6
7
8
# File 'lib/kubernetes_references/local_object_reference.rb', line 6

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/kubernetes_references/local_object_reference.rb', line 4

def name
  @name
end

Instance Method Details

#_schemaObject



10
11
12
13
14
# File 'lib/kubernetes_references/local_object_reference.rb', line 10

def _schema
  {
    name: @name
  }
end