1# frozen_string_literal: true 2 3module API 4 module Entities 5 module Nuget 6 class SearchResult < Grape::Entity 7 expose :type, as: :@type 8 expose :authors 9 expose :name, as: :id 10 expose :name, as: :title 11 expose :summary 12 expose :total_downloads, as: :totalDownloads 13 expose :verified 14 expose :version 15 expose :versions, using: ::API::Entities::Nuget::SearchResultVersion 16 expose :tags 17 expose :metadatum, using: ::API::Entities::Nuget::Metadatum, merge: true 18 end 19 end 20 end 21end 22