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
#==, cache?, #changed?, class_name, clear_cache, connected?, create, decode_field, #destroy, disable_cache, enable_cache, encode_field, error, error?, error_code, exists?, find, find_all, find_cached_results, find_first, #get_attr, get_field_type, #initialize, make_filter, make_filter_from_hash, #method_missing, method_missing, #move, #new_record?, parse_finder_spec, #reload, #save, #set_attr, setup, #to_ary, #update_attribute, #update_attributes, #valid_attribute?
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:
23 24 25 |
# File 'lib/active_directory/computer.rb', line 23 def self.filter # :nodoc: Net::LDAP::Filter.eq(:objectClass,'computer') end |
.required_attributes ⇒ Object
:nodoc:
27 28 29 |
# File 'lib/active_directory/computer.rb', line 27 def self.required_attributes # :nodoc: { :objectClass => [ 'top', 'person', 'organizationalPerson', 'user', 'computer' ] } end |
Instance Method Details
#hostname ⇒ Object
31 32 33 |
# File 'lib/active_directory/computer.rb', line 31 def hostname dNSHostName || name end |