Class: Infrataster::Resources::LdapResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/infrataster/resources/ldap_resource.rb

Constant Summary collapse

Error =
Class.new(StandardError)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(basedn) ⇒ LdapResource

Returns a new instance of LdapResource.



10
11
12
# File 'lib/infrataster/resources/ldap_resource.rb', line 10

def initialize(basedn)
  @basedn = basedn
end

Instance Attribute Details

#basednObject (readonly)

Returns the value of attribute basedn.



8
9
10
# File 'lib/infrataster/resources/ldap_resource.rb', line 8

def basedn
  @basedn
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/infrataster/resources/ldap_resource.rb', line 14

def to_s
  "LDAP: #{@basedn}"
end