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