gitlab-org--gitlab-foss/app/serializers/cluster_serializer.rb

10 lines
215 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-10-03 21:21:54 +00:00
class ClusterSerializer < BaseSerializer
entity ClusterEntity
def represent_status(resource)
2017-10-31 10:29:56 +00:00
represent(resource, { only: [:status, :status_reason, :applications] })
2017-10-03 21:21:54 +00:00
end
end