Class: ActiveLdap::Ldif::ChangeRecord
- Inherits:
-
Record
- Object
- Record
- ActiveLdap::Ldif::ChangeRecord
show all
- Defined in:
- lib/active_ldap/ldif.rb
Defined Under Namespace
Classes: Control
Instance Attribute Summary collapse
Attributes inherited from Record
#attributes, #dn
Instance Method Summary
collapse
Methods inherited from Record
#to_hash, #to_s
included
Constructor Details
#initialize(dn, attributes, controls, change_type) ⇒ ChangeRecord
Returns a new instance of ChangeRecord.
641
642
643
644
645
|
# File 'lib/active_ldap/ldif.rb', line 641
def initialize(dn, attributes, controls, change_type)
super(dn, attributes)
@controls = controls
@change_type = change_type
end
|
Instance Attribute Details
#change_type ⇒ Object
Returns the value of attribute change_type.
640
641
642
|
# File 'lib/active_ldap/ldif.rb', line 640
def change_type
@change_type
end
|
#controls ⇒ Object
Returns the value of attribute controls.
640
641
642
|
# File 'lib/active_ldap/ldif.rb', line 640
def controls
@controls
end
|
Instance Method Details
#==(other) ⇒ Object
667
668
669
670
671
|
# File 'lib/active_ldap/ldif.rb', line 667
def ==(other)
super(other) and
@controls = other.controls and
@change_type == other.change_type
end
|
#add? ⇒ Boolean
647
648
649
|
# File 'lib/active_ldap/ldif.rb', line 647
def add?
@change_type == "add"
end
|
#delete? ⇒ Boolean
651
652
653
|
# File 'lib/active_ldap/ldif.rb', line 651
def delete?
@change_type == "delete"
end
|
#modify? ⇒ Boolean
655
656
657
|
# File 'lib/active_ldap/ldif.rb', line 655
def modify?
@change_type == "modify"
end
|
#modify_dn? ⇒ Boolean
659
660
661
|
# File 'lib/active_ldap/ldif.rb', line 659
def modify_dn?
@change_type == "moddn"
end
|
#modify_rdn? ⇒ Boolean
663
664
665
|
# File 'lib/active_ldap/ldif.rb', line 663
def modify_rdn?
@change_type == "modrdn"
end
|