Class: Content::Repository::Product

Inherits:
Content::Repository show all
Defined in:
app/models/content/repository/product.rb

Constant Summary

Constants inherited from Content::Repository

FILE_TYPE, KICKSTART_TYPE, TYPES, YUM_TYPE

Constants included from Content::RepositoryCommon

Content::RepositoryCommon::REPO_PREFIX

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Content::Repository

#clone, #to_label

Methods included from Content::RepositoryCommon

#full_path

Class Method Details

.model_nameObject



8
9
10
# File 'app/models/content/repository/product.rb', line 8

def self.model_name
  Repository.model_name
end

Instance Method Details

#content_typesObject



12
13
14
# File 'app/models/content/repository/product.rb', line 12

def content_types
  TYPES - [KICKSTART_TYPE]
end

#entity_nameObject



16
17
18
# File 'app/models/content/repository/product.rb', line 16

def entity_name
  product.name
end