Sha256: 6daaa39ce0a72784cd358075fcd0260eb8acde0ff22f351e42977f132aba09e5

Contents?: true

Size: 619 Bytes

Versions: 19

Compression:

Stored size: 619 Bytes

Contents

object @resource

@resource ||= @object
@facet = @resource.content_facet

attributes :id, :name, :description
if @facet
  node :content_view do
    content_view = @facet&.single_content_view
    if content_view.present?
      {
        :id => content_view.id,
        :name => content_view.name,
        :composite => content_view.composite?
      }
    end
  end
  node :lifecycle_environment do
    lifecycle_environment = @facet&.single_lifecycle_environment
    if lifecycle_environment.present?
      {
        :id => lifecycle_environment.id,
        :name => lifecycle_environment.name
      }
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-4.11.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.11.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.11.0.rc2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.11.0.rc1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.10.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.9.2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.10.0.rc2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.10.0.rc1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.4 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.9.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.3 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.9.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.9.0.rc2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.9.0.rc1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.0.rc2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.8.0.rc1 app/views/katello/api/v2/hosts/base.json.rabl