Exception: ActiveSambaLdap::CanNotChangePrimaryGroup

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(group, members) ⇒ CanNotChangePrimaryGroup

Returns a new instance of CanNotChangePrimaryGroup.



65
66
67
68
69
70
71
# File 'lib/active_samba_ldap/base.rb', line 65

def initialize(group, members)
  @group = group
  @members = members
  format = _("cannot change primary group from '%s' to other group " \
             "due to no other belonged groups: %s")
  super(format % [group, members.join(', ')])
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



64
65
66
# File 'lib/active_samba_ldap/base.rb', line 64

def group
  @group
end

#membersObject (readonly)

Returns the value of attribute members.



64
65
66
# File 'lib/active_samba_ldap/base.rb', line 64

def members
  @members
end