debian-mirror-gitlab/lib/api/entities/shared_group_with_group.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
448 B
Ruby
Raw Permalink Normal View History

2020-06-23 00:09:42 +05:30
# frozen_string_literal: true
module API
module Entities
class SharedGroupWithGroup < Grape::Entity
expose :shared_with_group_id, as: :group_id
expose :group_name do |group_link|
group_link.shared_with_group.name
end
expose :group_full_path do |group_link|
group_link.shared_with_group.full_path
end
expose :group_access, as: :group_access_level
expose :expires_at
end
end
end