Method: Contentstack::ContentType.all
- Defined in:
- lib/contentstack/content_type.rb
.all ⇒ Object
40 41 42 43 44 45 |
# File 'lib/contentstack/content_type.rb', line 40 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 |