Class: Ldapter::Syntaxes::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/ldapter/syntaxes.rb

Direct Known Subclasses

Boolean, DN, DirectoryString, GeneralizedTime, INTEGER, LDAPSyntaxDescription

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Abstract) initialize(object = nil)

The object argument refers back to the LDAP entry from which the attribute in question came. This is currently used only for the DN syntax, to allow dn.find to work.



103
104
105
# File 'lib/ldapter/syntaxes.rb', line 103

def initialize(object = nil)
  @object = object
end

Class Method Details

+ (Object) format(object)



109
110
111
# File 'lib/ldapter/syntaxes.rb', line 109

def self.format(object)
  new.format(object)
end

+ (Object) parse(string)



112
113
114
# File 'lib/ldapter/syntaxes.rb', line 112

def self.parse(string)
  new.parse(string)
end

Instance Method Details

- (Object) format(value)



106
107
108
# File 'lib/ldapter/syntaxes.rb', line 106

def format(value)
  value.to_s
end