Class: ActiveDirectory::Computer
- Defined in:
- lib/active_directory/computer.rb
Constant Summary
Constants inherited from Base
Class Method Summary collapse
-
.filter ⇒ Object
:nodoc:.
-
.required_attributes ⇒ Object
:nodoc:.
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
.filter ⇒ Object
:nodoc:
26 27 28 |
# File 'lib/active_directory/computer.rb', line 26 def self.filter # :nodoc: Net::LDAP::Filter.eq(:objectClass,'computer') end |
.required_attributes ⇒ Object
: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
#hostname ⇒ Object
34 35 36 |
# File 'lib/active_directory/computer.rb', line 34 def hostname dNSHostName || name end |