Method: Contentstack::ContentType#fetch
- Defined in:
- lib/contentstack/content_type.rb
#fetch ⇒ Object
49 50 51 52 |
# File 'lib/contentstack/content_type.rb', line 49 def fetch content_type = API.fetch_content_types(uid)["content_type"] ContentType.new(content_type.inject({}){|clone,(k,v)| clone[k.to_sym] = v; clone}) end |