Module: Tr3llo::API::User
Instance Method Summary collapse
Instance Method Details
#find(user_id) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/3llo/api/user.rb', line 6 def find(user_id) client = Application.fetch_client!() req_path = Utils.build_req_path("/members/#{user_id}") make_struct(client.get(req_path, {})) end |
#find_all_by_board(board_id) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/3llo/api/user.rb', line 13 def find_all_by_board(board_id) client = Application.fetch_client!() req_path = Utils.build_req_path("/board/#{board_id}/members") client .get(req_path, {}) .map { |user_payload| make_struct(user_payload) } end |