Exception: ActiveSambaLdap::MissingRequiredVariableError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_samba_ldap/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetTextSupport

included

Constructor Details

#initialize(names) ⇒ MissingRequiredVariableError

Returns a new instance of MissingRequiredVariableError.



10
11
12
13
14
15
16
# File 'lib/active_samba_ldap/base.rb', line 10

def initialize(names)
  names = names.to_a
  @names = names
  super(n_("required variable is not set: %s",
           "required variables are not set: %s",
           names.size) % names.join(', '))
end

Instance Attribute Details

#namesObject (readonly)

Returns the value of attribute names.



9
10
11
# File 'lib/active_samba_ldap/base.rb', line 9

def names
  @names
end

Instance Method Details

#nameObject



18
19
20
# File 'lib/active_samba_ldap/base.rb', line 18

def name
  @names.first
end