Class: Ambition::Adapters::ActiveLdap::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/ambition/adapters/active_ldap/query.rb

Instance Method Summary collapse

Instance Method Details

#kickObject



6
7
8
9
10
11
# File 'lib/ambition/adapters/active_ldap/query.rb', line 6

def kick
  options = {}
  string = to_s
  options[:filter] = string unless string.empty?
  owner.find(:all, options)
end

#sizeObject



13
14
15
# File 'lib/ambition/adapters/active_ldap/query.rb', line 13

def size
  raise "Not Implemented"
end

#to_sObject



17
18
19
20
# File 'lib/ambition/adapters/active_ldap/query.rb', line 17

def to_s
  Array(clauses[:select]).join
  clauses[:select].first.to_s
end