Class: LdapConverters::Base

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

Overview

Base class for LDAP value conversions

Direct Known Subclasses

ArrayValue, Number, SingleValue, StringBoolean

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Base) initialize(model)

Returns a new instance of Base



7
8
9
# File 'lib/ldap_converters.rb', line 7

def initialize(model)
  @model = model
end

Instance Attribute Details

- (Object) model (readonly)

Returns the value of attribute model



5
6
7
# File 'lib/ldap_converters.rb', line 5

def model
  @model
end

Instance Method Details

- (Object) read

Override in a subclass



20
21
# File 'lib/ldap_converters.rb', line 20

def read()
end

- (Object) validate(value)

Override in a subclass



12
13
# File 'lib/ldap_converters.rb', line 12

def validate(value)
end

- (Object) write(write)

Override in a subclass



16
17
# File 'lib/ldap_converters.rb', line 16

def write(write)
end