Class: Ldap::Relations::RelationManager
- Inherits:
-
Object
- Object
- Ldap::Relations::RelationManager
- 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
-
#relations ⇒ Object
Returns the value of attribute relations.
Instance Method Summary collapse
-
#initialize(*args) ⇒ RelationManager
constructor
A new instance of RelationManager.
-
#to_filter ⇒ Object
Public: convert the relations to an LDAP-style filter string.
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
#relations ⇒ Object
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_filter ⇒ Object
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 |