Module: RockRMS::Client::GroupMember
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/group_member.rb
Instance Method Summary collapse
- #create_group_member(group_id:, group_member_status:, group_role_id:, person_id:) ⇒ Object
- #create_known_relationship(person_id:, related_person_id:, relationship_role_id:) ⇒ Object
- #delete_group_member(id) ⇒ Object
- #list_group_members(options = {}) ⇒ Object
Instance Method Details
#create_group_member(group_id:, group_member_status:, group_role_id:, person_id:) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rock_rms/resources/group_member.rb', line 4 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 |
#create_known_relationship(person_id:, related_person_id:, relationship_role_id:) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/rock_rms/resources/group_member.rb', line 28 def create_known_relationship(person_id:, related_person_id:, relationship_role_id:) url_params = { personId: person_id, relatedPersonId: , relationshipRoleId: relationship_role_id } post("GroupMembers/KnownRelationship?#{URI.encode_www_form(url_params)}") end |
#delete_group_member(id) ⇒ Object
24 25 26 |
# File 'lib/rock_rms/resources/group_member.rb', line 24 def delete_group_member(id) delete(group_member_path(id)) end |
#list_group_members(options = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/rock_rms/resources/group_member.rb', line 18 def list_group_members( = {}) Response::GroupMember.format( get(group_member_path, ) ) end |