Module: XClarityClient::Mixins::UserMixin
- Included in:
- Client
- Defined in:
- lib/xclarity_client/mixins/user_mixin.rb
Overview
Exposes UserManagement features
Instance Method Summary collapse
- #change_user_password(current_password, new_password) ⇒ Object
- #discover_users(_opts = {}) ⇒ Object
- #fetch_users(ids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object
Instance Method Details
#change_user_password(current_password, new_password) ⇒ Object
20 21 22 23 24 |
# File 'lib/xclarity_client/mixins/user_mixin.rb', line 20 def change_user_password(current_password, new_password) UserManagement.new(@config).change_password( current_password, new_password ) end |
#discover_users(_opts = {}) ⇒ Object
6 7 8 |
# File 'lib/xclarity_client/mixins/user_mixin.rb', line 6 def discover_users(_opts = {}) UserManagement.new(@config).fetch_all end |
#fetch_users(ids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/xclarity_client/mixins/user_mixin.rb', line 10 def fetch_users(ids = nil, include_attributes = nil, exclude_attributes = nil) UserManagement.new(@config).get_object_with_id( ids, include_attributes, exclude_attributes ) end |