Class: Ldap::Relations::And
- Inherits:
-
Object
- Object
- Ldap::Relations::And
- Defined in:
- lib/ldap-relations/and.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left, right) ⇒ And
constructor
A new instance of And.
- #to_filter ⇒ Object
Constructor Details
#initialize(left, right) ⇒ And
Returns a new instance of And.
4 5 6 7 |
# File 'lib/ldap-relations/and.rb', line 4 def initialize left, right @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
9 10 11 |
# File 'lib/ldap-relations/and.rb', line 9 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
9 10 11 |
# File 'lib/ldap-relations/and.rb', line 9 def right @right end |
Instance Method Details
#to_filter ⇒ Object
11 12 13 |
# File 'lib/ldap-relations/and.rb', line 11 def to_filter "(&#{left.to_filter}#{right.to_filter})" end |