Class: ActiveLdap::SupportedControl — activeldap - ActiveLdap

Class: ActiveLdap::SupportedControl

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

Instance Method Summary (collapse)

Constructor Details

- (SupportedControl) initialize(controls)

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

- (Boolean) paged_results?

Returns:

  • (Boolean)


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

def paged_results?
  @paged_results
end