Class: Katello::DockerManifest

Inherits:
Model
  • Object
show all
Includes:
Concerns::PulpDatabaseUnit
Defined in:
app/models/katello/docker_manifest.rb

Constant Summary collapse

CONTENT_TYPE =
Pulp::DockerManifest::CONTENT_TYPE

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Concerns::PulpDatabaseUnit

#backend_data

Methods inherited from Model

#destroy!

Class Method Details

.repository_association_classObject



13
14
15
# File 'app/models/katello/docker_manifest.rb', line 13

def self.repository_association_class
  RepositoryDockerManifest
end

Instance Method Details

#update_from_json(json) ⇒ Object



17
18
19
20
21
22
23
# File 'app/models/katello/docker_manifest.rb', line 17

def update_from_json(json)
  update_attributes(:name => json[:name],
                    :schema_version => json[:schema_version],
                    :digest => json[:digest],
                    :downloaded => json[:downloaded]
                   )
end