Sha256: 0b4fc375830554eea09d85093ccd4fdfcc935ec34a3882439e5e4ad8d0bdd3bb
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
child :subscription_facet => :subscription do |facet| extends 'katello/api/v2/subscription_facet/base' consumer = Katello::Candlepin::Consumer.new(facet.uuid) 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 node :content_host_id do |host| host.content_host.try(:id) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katello-3.0.0.rc2 | app/views/katello/api/v2/subscription_facet/show.json.rabl |
katello-3.0.0.rc1 | app/views/katello/api/v2/subscription_facet/show.json.rabl |