【发布时间】:2017-03-01 15:42:36
【问题描述】:
我遇到了 Grape::API 的问题。我需要向服务器发送所有找到的运动中心的哈希值:
{ :total => total_found }
并使用一起存在的方法
present sport_centers, :with => API::APISportCenterBasic
我不知道该怎么做。
我在这里需要total_found,因为我只向其他服务器发送了有限数量的运动中心,而且我需要一个总数。
【问题讨论】: