Method: Contentstack::ContentType.all

Defined in:
lib/contentstack/content_type.rb

.allObject


42
43
44
45
46
47
# File 'lib/contentstack/content_type.rb', line 42

def self.all
  content_types = API.fetch_content_types["content_types"]
  content_types.map do |content_type|
    ContentType.new(content_type.inject({}){|clone,(k,v)| clone[k.to_sym] = v; clone})
  end
end