Module: BridgeAPI::Client::Group
- Defined in:
- lib/bridge_api/client/group.rb
Instance Method Summary collapse
- #add_group(params = {}) ⇒ Object
- #delete_group_relevance(group_id, params) ⇒ Object
- #group_relevance(params = {}) ⇒ Object
- #update_group(group_id, params = {}) ⇒ Object
- #update_group_relevance(params = {}) ⇒ Object
Instance Method Details
#add_group(params = {}) ⇒ Object
6 7 8 |
# File 'lib/bridge_api/client/group.rb', line 6 def add_group(params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{GROUPS_PATH}", params) end |
#delete_group_relevance(group_id, params) ⇒ Object
22 23 24 |
# File 'lib/bridge_api/client/group.rb', line 22 def delete_group_relevance(group_id, params) delete("#{API_PATH}#{AUTHOR_PATH}/group_relevance/#{group_id}", params) end |
#group_relevance(params = {}) ⇒ Object
14 15 16 |
# File 'lib/bridge_api/client/group.rb', line 14 def group_relevance(params = {}) get("#{API_PATH}#{AUTHOR_PATH}/group_relevance", params) end |
#update_group(group_id, params = {}) ⇒ Object
10 11 12 |
# File 'lib/bridge_api/client/group.rb', line 10 def update_group(group_id, params = {}) put("#{API_PATH}#{AUTHOR_PATH}#{GROUPS_PATH}/#{group_id}", params) end |
#update_group_relevance(params = {}) ⇒ Object
18 19 20 |
# File 'lib/bridge_api/client/group.rb', line 18 def update_group_relevance(params = {}) put("#{API_PATH}#{AUTHOR_PATH}/group_relevance", params) end |