debian-mirror-gitlab/app/serializers/cluster_application_entity.rb
2018-03-27 19:54:05 +05:30

6 lines
194 B
Ruby

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