File: supported_control.rb

package info (click to toggle)
ruby-activeldap 4.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,524 kB
  • ctags: 1,815
  • sloc: ruby: 17,656; makefile: 15
file content (14 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "active_ldap/ldap_controls"

module ActiveLdap
  class SupportedControl
    def initialize(controls)
      @controls = controls
      @paged_results = @controls.include?(LdapControls::PAGED_RESULTS)
    end

    def paged_results?
      @paged_results
    end
  end
end