1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/open_api/v1/availabilities/index.json.jbuilder
2023-03-30 13:22:36 +02:00

12 lines
360 B
Ruby

# frozen_string_literal: true
json.availabilities @availabilities do |availability|
json.extract! availability, :id, :start_at, :end_at, :created_at
json.available_type availability.available_type.classify
json.available_ids availability.available_ids
json.slots availability.slots do |slot|
json.extract! slot, :id, :start_at, :end_at
end
end