Class: KubernetesReferences::HTTPHeader

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from API

#_set!, #schema, #to_hash

Constructor Details

#initialize(obj) ⇒ HTTPHeader

Returns a new instance of HTTPHeader.



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

def initialize(obj)
  _set!(obj)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#_schemaObject



12
13
14
15
16
17
# File 'lib/kubernetes_references/http_header.rb', line 12

def _schema
  {
    name: @name,
    value: @value
  }
end