Class: Platforms::Yammer::Api::GroupMemberships
- Defined in:
- lib/platforms/yammer/api/group_memberships.rb
Overview
Group memberships in Yammer
Instance Method Summary collapse
-
#delete(group_id, options = {}, headers = {}) ⇒ Faraday::Response
Leave a Group.
-
#post(group_id, options = {}, headers = {}) ⇒ Faraday::Response
Join a Group.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Platforms::Yammer::Api::Base
Instance Method Details
#delete(group_id, options = {}, headers = {}) ⇒ Faraday::Response
Leave a Group
26 27 28 29 |
# File 'lib/platforms/yammer/api/group_memberships.rb', line 26 def delete group_id, ={}, headers={} params = .merge({group_id: group_id}) @connection.delete 'group_memberships.json', params, headers end |
#post(group_id, options = {}, headers = {}) ⇒ Faraday::Response
Join a Group
15 16 17 18 |
# File 'lib/platforms/yammer/api/group_memberships.rb', line 15 def post group_id, ={}, headers={} body = .merge({ group_id: group_id}) @connection.post 'group_memberships.json', body, headers end |