Module: ActiveSambaLdap::SambaEntry
- Included in:
- Computer, Group, SambaGroupEntry, User
- Defined in:
- lib/active_samba_ldap/samba_entry.rb
Instance Method Summary collapse
- #ensure_samba_available ⇒ Object
- #remove_samba_availability ⇒ Object
- #samba_available? ⇒ Boolean
- #samba_object_classes ⇒ Object
Instance Method Details
#ensure_samba_available ⇒ Object
11 12 13 |
# File 'lib/active_samba_ldap/samba_entry.rb', line 11 def ensure_samba_available add_class(*samba_object_classes) end |
#remove_samba_availability ⇒ Object
7 8 9 |
# File 'lib/active_samba_ldap/samba_entry.rb', line 7 def remove_samba_availability remove_class(*samba_object_classes) end |
#samba_available? ⇒ Boolean
3 4 5 |
# File 'lib/active_samba_ldap/samba_entry.rb', line 3 def samba_available? (samba_object_classes - classes).empty? end |
#samba_object_classes ⇒ Object
15 16 17 |
# File 'lib/active_samba_ldap/samba_entry.rb', line 15 def samba_object_classes self.class.samba_object_classes end |