Class: Kube::Cluster::Standard::Secret
- Inherits:
-
Object
- Object
- Kube::Cluster::Standard::Secret
- Defined in:
- lib/kube/cluster/standard/secret.rb
Defined Under Namespace
Classes: KeyRef
Instance Method Summary collapse
-
#initialize(name:, **data, &block) ⇒ Secret
constructor
A new instance of Secret.
- #key(key_name) ⇒ Object
- #secret_name ⇒ Object
Constructor Details
#initialize(name:, **data, &block) ⇒ Secret
Returns a new instance of Secret.
12 13 14 15 16 17 18 |
# File 'lib/kube/cluster/standard/secret.rb', line 12 def initialize(name:, **data, &block) super() { .name = name data.each { |k, v| stringData[k.to_s] = v } instance_exec(&block) if block_given? } end |