Class: ActiveDirectory::Computer

Inherits:
Base
  • Object
show all
Defined in:
lib/active_directory/computer.rb

Constant Summary

Constants inherited from Base

Base::NIL_FILTER

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #changed?, create, #destroy, error, exists?, find, find_all, find_first, #initialize, make_filter_from_hash, method_missing, #method_missing, #move, #new_record?, parse_finder_spec, #reload, #save, setup, #update_attribute, #update_attributes

Constructor Details

This class inherits a constructor from ActiveDirectory::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveDirectory::Base

Class Method Details

.filterObject

:nodoc:



26
27
28
# File 'lib/active_directory/computer.rb', line 26

def self.filter # :nodoc:
	Net::LDAP::Filter.eq(:objectClass,'computer')
end

.required_attributesObject

:nodoc:



30
31
32
# File 'lib/active_directory/computer.rb', line 30

def self.required_attributes # :nodoc:
	{ :objectClass => [ 'top', 'person', 'organizationalPerson', 'user', 'computer' ] }
end

Instance Method Details

#hostnameObject



34
35
36
# File 'lib/active_directory/computer.rb', line 34

def hostname
	dNSHostName || name
end