2020-03-13 15:44:24 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
2022-11-25 23:54:43 +05:30
|
|
|
# Serializes a Licensee::License
|
2020-03-13 15:44:24 +05:30
|
|
|
class License < Entities::LicenseBasic
|
|
|
|
expose :popular?, as: :popular
|
|
|
|
expose(:description) { |license| license.meta['description'] }
|
|
|
|
expose(:conditions) { |license| license.meta['conditions'] }
|
|
|
|
expose(:permissions) { |license| license.meta['permissions'] }
|
|
|
|
expose(:limitations) { |license| license.meta['limitations'] }
|
|
|
|
expose :content
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|