Class: Ldaptic::Filter::Attribute

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

Instance Method Summary collapse

Methods inherited from Abstract

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

Constructor Details

#initialize(name) ⇒ Attribute

Returns a new instance of Attribute.



90
91
92
93
94
95
# File 'lib/ldaptic/filter.rb', line 90

def initialize(name)
  if name.kind_of?(Symbol)
    name = name.to_s.tr('_-', '-_')
  end
  @name = name
end

Instance Method Details

#processObject



101
102
103
# File 'lib/ldaptic/filter.rb', line 101

def process
  "(#{@name}=*)"
end