summaryrefslogtreecommitdiff
path: root/lib/api/entities/environment.rb
blob: cb39ce1b13af4b670b5f3c1e6cb29fc3b85fdbbf (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module API
  module Entities
    class Environment < Entities::EnvironmentBasic
      expose :project, using: Entities::BasicProjectDetails
      expose :last_deployment, using: Entities::Deployment, if: { last_deployment: true }
      expose :state
    end
  end
end