summaryrefslogtreecommitdiff
path: root/app/serializers/cluster_application_entity.rb
blob: 77fc3336521af9dfa1c6aec37b674f9f1bfa0732 (plain)
1
2
3
4
5
6
7
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