summaryrefslogtreecommitdiff
path: root/lib/api/entities/trigger.rb
blob: 6a9f772fc6b09a201591a3e32d8c6b5e691dbfc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module API
  module Entities
    class Trigger < Grape::Entity
      include ::API::Helpers::Presentable

      expose :id
      expose :token
      expose :description
      expose :created_at, :updated_at, :last_used
      expose :owner, using: Entities::UserBasic
    end
  end
end