blob: 08af68785a96fe6e50fbf61633f27721f0db21ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module API
module Entities
class LicenseBasic < Grape::Entity
expose :key, :name, :nickname
expose :url, as: :html_url
expose(:source_url) { |license| license.meta['source'] }
end
end
end
|