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