blob: 6619c00e368dee9ff814416d6c22a9810453b851 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
api.array :results, api_meta(:total_count => @result_count, :offset => @offset, :limit => @limit) do
@results.each do |result|
api.result do
api.id result.id
api.title result.event_title
api.type result.event_type
api.url url_for(result.event_url(:only_path => false))
api.description result.event_description
api.datetime result.event_datetime
end
end
end
|