Method: Cloudinary::Search#fields

Defined in:
lib/cloudinary/search.rb

#fields(value) ⇒ Cloudinary::Search

The list of the asset attributes to include for each asset in the response.

Parameters:

  • value (Array)

    The array of attributes’ names.

Returns:



88
89
90
91
92
93
# File 'lib/cloudinary/search.rb', line 88

def fields(value)
  Cloudinary::Utils.build_array(value).each do |field|
    @query_hash[FIELDS][field] = field
  end
  self
end