Class: Ldap::Relations::RelationManager

Inherits:
Object
  • Object
show all
Defined in:
lib/ldap-relations/relation_manager.rb

Overview

Store a list of relations and provide methods to output the list as an LDAP filter string.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ RelationManager

Returns a new instance of RelationManager.



6
7
8
# File 'lib/ldap-relations/relation_manager.rb', line 6

def initialize *args
  self.relations = RelationGrouping.new
end

Instance Attribute Details

#relationsObject

Returns the value of attribute relations.



10
11
12
# File 'lib/ldap-relations/relation_manager.rb', line 10

def relations
  @relations
end

Instance Method Details

#to_filterObject

Public: convert the relations to an LDAP-style filter string.

Returns String



15
16
17
# File 'lib/ldap-relations/relation_manager.rb', line 15

def to_filter
  relations.to_filter
end