Exception: ActiveSambaLdap::CanNotChangePrimaryGroup
- Defined in:
- lib/active_samba_ldap/base.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#members ⇒ Object
readonly
Returns the value of attribute members.
Instance Method Summary collapse
-
#initialize(group, members) ⇒ CanNotChangePrimaryGroup
constructor
A new instance of CanNotChangePrimaryGroup.
Methods included from GetTextSupport
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
#group ⇒ Object (readonly)
Returns the value of attribute group.
64 65 66 |
# File 'lib/active_samba_ldap/base.rb', line 64 def group @group end |
#members ⇒ Object (readonly)
Returns the value of attribute members.
64 65 66 |
# File 'lib/active_samba_ldap/base.rb', line 64 def members @members end |