summaryrefslogtreecommitdiff
path: root/app/serializers/cluster_application_entity.rb
blob: 2bd17e58086d66cce20b5c919c2c7a2e3017ec8b (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class ClusterApplicationEntity < Grape::Entity
  expose :name
  expose :status_name, as: :status
  expose :status_reason
  expose :external_ip, if: -> (e, _) { e.respond_to?(:external_ip) }
  expose :hostname, if: -> (e, _) { e.respond_to?(:hostname) }
end