Class: KubernetesReferences::KeyToPath

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ KeyToPath

Returns a new instance of KeyToPath.



10
11
12
# File 'lib/kubernetes_references/key_to_path.rb', line 10

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#modeObject

Returns the value of attribute mode.



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

def mode
  @mode
end

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/kubernetes_references/key_to_path.rb', line 8

def path
  @path
end

Instance Method Details

#_schemaObject



14
15
16
17
18
19
20
# File 'lib/kubernetes_references/key_to_path.rb', line 14

def _schema
  {
    key: @key,
    mode: @mode,
    path: @path
  }
end