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