Class: Springcm::Group
- Defined in:
- lib/springcm-sdk/group.rb
Instance Method Summary collapse
-
#users(offset: 0, limit: 20) ⇒ ResourceList
Users that are a member of the specified Group.
Methods inherited from Resource
#delete, #get, #patch, #put, #reload, #reload!, #resource_name, #resource_params, resource_params, #resource_uri, #uid
Methods inherited from Object
#initialize, #method_missing, #raw
Constructor Details
This class inherits a constructor from Springcm::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Springcm::Object
Instance Method Details
#users(offset: 0, limit: 20) ⇒ ResourceList
Returns Users that are a member of the specified Group.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/springcm-sdk/group.rb', line 7 def users(offset: 0, limit: 20) Helpers.validate_offset_limit!(offset, limit) conn = @client.(url: @client.object_api_url) res = conn.get do |req| req.url "#{resource_uri}/groupmembers" req.params["offset"] = offset req.params["limit"] = limit end if res.success? data = JSON.parse(res.body) ResourceList.new(data, self, User, @client) else nil end end |