Class: QuickAndRuby::DistinguishedName::Attribute
- Inherits:
-
Object
- Object
- QuickAndRuby::DistinguishedName::Attribute
- Defined in:
- lib/quick_and_ruby/distinguished_name.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
DC domainComponent CN commonName OU organizationalUnitName O organizationName STREET streetAddress L localityName ST stateOrProvinceName C countryName UID userid.
-
#value ⇒ Object
readonly
DC domainComponent CN commonName OU organizationalUnitName O organizationName STREET streetAddress L localityName ST stateOrProvinceName C countryName UID userid.
Instance Method Summary collapse
-
#initialize(attribute, value) ⇒ Attribute
constructor
A new instance of Attribute.
- #to_s ⇒ Object
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
#attribute ⇒ Object (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 |
#value ⇒ Object (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_s ⇒ Object
54 55 56 |
# File 'lib/quick_and_ruby/distinguished_name.rb', line 54 def to_s "#{attribute}=#{value}" end |