Module: BridgeAPI::Client::Role

Defined in:
lib/bridge_api/client/role.rb

Instance Method Summary collapse

Instance Method Details

#create_role(params = {}) ⇒ Object



14
15
16
# 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 = {}) ⇒ Object



18
19
20
# 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 = {}) ⇒ Object



6
7
8
# 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 = {}) ⇒ Object



10
11
12
# 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