Class: ActiveLdap::SupportedControl

Inherits:
Object
  • Object
show all
Defined in:
lib/active_ldap/supported_control.rb

Instance Method Summary collapse

Constructor Details

#initialize(controls) ⇒ SupportedControl

Returns a new instance of SupportedControl



5
6
7
8
# File 'lib/active_ldap/supported_control.rb', line 5

def initialize(controls)
  @controls = controls
  @paged_results = @controls.include?(LdapControls::PAGED_RESULTS)
end

Instance Method Details

#paged_results?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_ldap/supported_control.rb', line 10

def paged_results?
  @paged_results
end