Class: DTK::State::Component::Attribute::KubeCrd
- Inherits:
-
DTK::State::Component::Attribute
- Object
- DTK::State::Component::Attribute
- DTK::State::Component::Attribute::KubeCrd
- Defined in:
- lib/state/component/providers/kube_crd.rb
Instance Attribute Summary
Attributes inherited from DTK::State::Component::Attribute
#dynamic, #encrypted, #function, #name, #parent, #required, #type, #value
Instance Method Summary collapse
Methods inherited from DTK::State::Component::Attribute
create_from_kube_array, create_from_kube_hash, get, #initialize, #to_hash
Constructor Details
This class inherits a constructor from DTK::State::Component::Attribute
Instance Method Details
#get(namespace, assembly_name, component_name, attribute_name, opts = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/state/component/providers/kube_crd.rb', line 4 def get(namespace, assembly_name, component_name, attribute_name, opts = {}) assembly = Component.get(namespace, assembly_name, component_name, opts) attribute = assembly.attributes.find{ |attribute| attribute.name == attribute_name } Attribute.new(attribute_name, attribute, assembly) end |