Class: ICWS::Configuration::Users
- Inherits:
-
ConfigurationItem
- Object
- ConfigurationItem
- ICWS::Configuration::Users
- Defined in:
- lib/icws/configuration/users.rb
Overview
Represents the users configuration in CIC. This class can perform operations to create/edit/delete users.
Instance Method Summary collapse
-
#initialize(connection) ⇒ Users
constructor
A new instance of Users.
-
#set_password(user_id, password, force) ⇒ Object
sets the password on a user.
Methods inherited from ConfigurationItem
#create_new, #defaults, #delete, #get, #get_all, #update
Constructor Details
#initialize(connection) ⇒ Users
7 8 9 |
# File 'lib/icws/configuration/users.rb', line 7 def initialize(connection) super(connection,'users') end |
Instance Method Details
#set_password(user_id, password, force) ⇒ Object
sets the password on a user
15 16 17 18 19 20 21 22 |
# File 'lib/icws/configuration/users.rb', line 15 def set_password(user_id, password, force) icws_uri = @uri + '/' + user_id + '/password' puts 'setting password to ' + password puts 'to: ' + icws_uri @client.put icws_uri, { :password => password, :force => force} end |