Sha256: 4ee1e164efe55c5f10ce50e277eb4fd51040d0e6a96add95283b75e3b2167244
Contents?: true
Size: 1.15 KB
Versions: 35
Compression:
Stored size: 1.15 KB
Contents
module RockRMS class Client module GroupMember def create_group_member(group_id:, group_member_status:, group_role_id:, person_id:) post( group_member_path, IsSystem: false, GroupId: group_id, GroupMemberStatus: group_member_status, GroupRoleId: group_role_id, PersonId: person_id ) end def list_group_members(options = {}) Response::GroupMember.format( get(group_member_path, options) ) end def delete_group_member(id) delete(group_member_path(id)) end def create_known_relationship(person_id:, related_person_id:, relationship_role_id:) url_params = { personId: person_id, relatedPersonId: related_person_id, relationshipRoleId: relationship_role_id } post("GroupMembers/KnownRelationship?#{URI.encode_www_form(url_params)}") end private def group_member_path(id = nil) id ? "GroupMembers/#{id}" : 'GroupMembers' end end end end
Version data entries
35 entries across 35 versions & 1 rubygems