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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Content::Repository

#publish, #to_label

Class Method Details

.model_nameObject



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

def self.model_name
  Repository.model_name
end

Instance Method Details

#content_typesObject



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

def content_types
  TYPES - [KICKSTART_TYPE]
end

#entity_nameObject



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

def entity_name
  product.name
end