Class: UserRolesClient
- Inherits:
-
Object
- Object
- UserRolesClient
- Defined in:
- lib/lockstep_sdk/clients/user_roles.rb
Instance Method Summary collapse
-
#initialize(lockstepsdk) ⇒ UserRolesClient
constructor
Initialize the UserRolesClient class with a lockstepsdk instance.
-
#query_user_roles(filter:, include_param:, order:, pageSize:, pageNumber:) ⇒ Object
Queries User Roles for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
-
#retrieve_user_role(id:, include_param:) ⇒ Object
Retrieves the User Role with this identifier.
Constructor Details
#initialize(lockstepsdk) ⇒ UserRolesClient
Initialize the UserRolesClient class with a lockstepsdk instance.
22 23 24 |
# File 'lib/lockstep_sdk/clients/user_roles.rb', line 22 def initialize(lockstepsdk) @lockstepsdk = lockstepsdk end |
Instance Method Details
#query_user_roles(filter:, include_param:, order:, pageSize:, pageNumber:) ⇒ Object
Queries User Roles for this account using the specified filtering, sorting, nested fetch, and pagination rules requested.
44 45 46 47 48 |
# File 'lib/lockstep_sdk/clients/user_roles.rb', line 44 def query_user_roles(filter:, include_param:, order:, pageSize:, pageNumber:) path = "/api/v1/UserRoles/query" params = {:filter => filter, :include => include_param, :order => order, :pageSize => pageSize, :pageNumber => pageNumber} @lockstepsdk.request(:get, path, nil, params) end |
#retrieve_user_role(id:, include_param:) ⇒ Object
Retrieves the User Role with this identifier.
31 32 33 34 35 |
# File 'lib/lockstep_sdk/clients/user_roles.rb', line 31 def retrieve_user_role(id:, include_param:) path = "/api/v1/UserRoles/#{id}" params = {:include => include_param} @lockstepsdk.request(:get, path, nil, params) end |