Class: Ldaptic::Filter::String

Inherits:
Abstract
  • Object
show all
Defined in:
lib/ldaptic/filter.rb

Overview

This class is used for raw LDAP queries. Note that the outermost set of parentheses must be used.

Ldaptic::Filter("a=1")   # Wrong
Ldaptic::Filter("(a=1)") # Correct

Instance Method Summary collapse

Methods inherited from Abstract

#&, #inspect, #to_ber, #to_net_ldap_filter, #to_s, #|, #~

Constructor Details

#initialize(string) ⇒ String

:nodoc:



113
114
115
# File 'lib/ldaptic/filter.rb', line 113

def initialize(string) #:nodoc:
  @string = string
end

Instance Method Details

#processObject

Returns the original string



118
119
120
# File 'lib/ldaptic/filter.rb', line 118

def process
  @string
end