module BridgeAPI::Client::Role
Public Instance Methods
create_role(params = {})
click to toggle source
# File lib/bridge_api/client/role.rb, line 14 def create_role(params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{ROLE_PATH}", params) end
delete_role(role_id, params = {})
click to toggle source
# File lib/bridge_api/client/role.rb, line 18 def delete_role(role_id, params = {}) delete("#{API_PATH}#{AUTHOR_PATH}#{ROLE_PATH}/#{role_id}", params) end
get_all_roles(params = {})
click to toggle source
# File lib/bridge_api/client/role.rb, line 6 def get_all_roles(params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{ROLE_PATH}", params) end
get_role(role_id, params = {})
click to toggle source
# File lib/bridge_api/client/role.rb, line 10 def get_role(role_id, params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{ROLE_PATH}/#{role_id}", params) end