Sha256: 6d7f7a3631b4444661ad2b7ada0dcc8b1d19e5b16f58db93328475c6fbb5855a

Contents?: true

Size: 727 Bytes

Versions: 20

Compression:

Stored size: 727 Bytes

Contents

child :subscription_facet => :subscription_facet_attributes do |facet|
  extends 'katello/api/v2/subscription_facet/base'
  consumer = Katello::Candlepin::Consumer.new(facet.uuid, facet.host.organization.label)

  node :compliance_reasons do
    consumer.compliance_reasons
  end

  node :virtual_host do |_subscription_facet|
    if (host = consumer.virtual_host)
      {:name => host.name, :id => host.id}
    end
  end

  node :virtual_guests do |_subscription_facet|
    consumer.virtual_guests.map do |guest|
      {:name => guest.name, :id => guest.id}
    end
  end

  node :installed_products do
    consumer.installed_products
  end

  child :activation_keys => :activation_keys do
    attributes :id, :name
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.5.2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.6.0 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.6.0.1.rc2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.6.0.rc2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.6.0.rc1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.5.1.1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.5.1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.5.0.1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.5.0 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.5.0.rc2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.5.0.rc1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.5 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.4 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.0.2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.0.1 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.0 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.0.rc2 app/views/katello/api/v2/subscription_facet/show.json.rabl
katello-3.4.0.rc1 app/views/katello/api/v2/subscription_facet/show.json.rabl