Class: QuickAndRuby::DistinguishedName::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/quick_and_ruby/distinguished_name.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute, value) ⇒ Attribute

Returns a new instance of Attribute.



49
50
51
52
# File 'lib/quick_and_ruby/distinguished_name.rb', line 49

def initialize(attribute, value)
  @attribute = attribute
  @value = value
end

Instance Attribute Details

#attributeObject (readonly)

DC domainComponent CN commonName OU organizationalUnitName O organizationName STREET streetAddress L localityName ST stateOrProvinceName C countryName UID userid



47
48
49
# File 'lib/quick_and_ruby/distinguished_name.rb', line 47

def attribute
  @attribute
end

#valueObject (readonly)

DC domainComponent CN commonName OU organizationalUnitName O organizationName STREET streetAddress L localityName ST stateOrProvinceName C countryName UID userid



47
48
49
# File 'lib/quick_and_ruby/distinguished_name.rb', line 47

def value
  @value
end

Instance Method Details

#to_sObject



54
55
56
# File 'lib/quick_and_ruby/distinguished_name.rb', line 54

def to_s
  "#{attribute}=#{value}"
end