class DTK::CrdParser::Component::Attribute
Attributes
name[R]
value[R]
Public Class Methods
create_from_kube(attribute_name, attribute_value, params)
click to toggle source
# File lib/crd_parser/component/attribute.rb, line 12 def self.create_from_kube(attribute_name, attribute_value, params) Attribute.new(attribute_name, attribute_value, params) end
new(name, value, params = {})
click to toggle source
# File lib/crd_parser/component/attribute.rb, line 7 def initialize(name, value, params = {}) @name = fail_if_nil(name, 'Attribute.name') @value = decrypt_if_encrypted(value, params[:encrypted]) end