Method: Contentful::Management::Asset#get_value_from

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

#get_value_from(fields, field_name) ⇒ Object



200
201
202
203
204
205
206
# File 'lib/contentful/management/asset.rb', line 200

def get_value_from(fields, field_name)
  if field_name == :file
    fields[field_name].properties if fields[field_name]
  else
    fields[field_name]
  end
end