2022-07-05 16:11:45 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-12 17:46:01 +02:00
|
|
|
json.array!(@slots_reservations) do |sr|
|
|
|
|
json.id sr.id
|
|
|
|
json.slot_id sr.slot_id
|
|
|
|
json.start_at sr.slot.start_at.iso8601
|
|
|
|
json.end_at sr.slot.end_at.iso8601
|
|
|
|
json.message sr.reservation.message
|
|
|
|
json.reservable sr.reservation.reservable
|
|
|
|
json.reservable_id sr.reservation.reservable_id
|
|
|
|
json.reservable_type sr.reservation.reservable_type
|
2016-03-23 18:39:41 +01:00
|
|
|
json.user do
|
2022-07-12 17:46:01 +02:00
|
|
|
json.id sr.reservation.statistic_profile&.user_id
|
|
|
|
json.name sr.reservation.statistic_profile&.user&.profile&.full_name
|
2016-03-23 18:39:41 +01:00
|
|
|
end
|
2022-07-12 17:46:01 +02:00
|
|
|
json.canceled_at sr.canceled_at
|
2016-03-23 18:39:41 +01:00
|
|
|
end
|