Method: Contentful::Management::Entry#fields_from_attributes

Defined in:
lib/contentful/management/entry.rb

#fields_from_attributes(attributes) ⇒ Object



195
196
197
198
199
# File 'lib/contentful/management/entry.rb', line 195

def fields_from_attributes(attributes)
  attributes.each do |id, value|
    attributes[id] = {locale => parse_update_attribute(value)}
  end
end