Sha256: 85499e0defa9b778c7df819d91db668faa15c10674b0397b672b94b50a55ae86

Contents?: true

Size: 649 Bytes

Versions: 6

Compression:

Stored size: 649 Bytes

Contents

object false

extends "katello/api/v2/common/metadata"

child @collection[:results] => :results do
  child :product => :product do
    attributes :id, :name
  end

  child :content => :content do
    attributes :id, :name, :label
    attribute :contentUrl => :content_url
  end

  node :override do |pc|
    pc.legacy_content_override
  end

  node :overrides do |pc|
    pc.content_overrides.map do |override|
      {:name => override.name, :value => override.computed_value}
    end
  end

  node :enabled_content_override do |pc|
    override = pc.enabled_content_override
    override.computed_value if override
  end

  attributes :enabled
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.5.2 app/views/katello/api/v2/activation_keys/product_content.json.rabl
katello-3.5.1.1 app/views/katello/api/v2/activation_keys/product_content.json.rabl
katello-3.5.1 app/views/katello/api/v2/activation_keys/product_content.json.rabl
katello-3.5.0.1 app/views/katello/api/v2/activation_keys/product_content.json.rabl
katello-3.5.0 app/views/katello/api/v2/activation_keys/product_content.json.rabl
katello-3.5.0.rc2 app/views/katello/api/v2/activation_keys/product_content.json.rabl