debian-mirror-gitlab/lib/api/entities/project_daily_statistics.rb
2023-01-12 18:35:48 +00:00

12 lines
354 B
Ruby

# frozen_string_literal: true
module API
module Entities
class ProjectDailyStatistics < Grape::Entity
expose :fetches do
expose :total_fetch_count, as: :total, documentation: { type: 'integer', example: 3 }
expose :fetches, as: :days, using: ProjectDailyFetches, documentation: { is_array: true }
end
end
end
end