def get_objects(objectIDs, attributes_to_retrieve = nil, request_options = {})
      attributes_to_retrieve = attributes_to_retrieve.join(',') if attributes_to_retrieve.is_a?(Array)
      requests = objectIDs.map do |objectID|
        req = { :indexName => name, :objectID => objectID.to_s }
        req[:attributesToRetrieve] = attributes_to_retrieve unless attributes_to_retrieve.nil?
        req
      end
      client.post(Protocol.objects_uri, { :requests => requests }.to_json, :read, request_options)['results']
    end
def get_objects(objectIDs, attributes_to_retrieve = nil, request_options = {})
      attributes_to_retrieve = attributes_to_retrieve.join(',') if attributes_to_retrieve.is_a?(Array)
      requests = objectIDs.map do |objectID|
        req = { :indexName => name, :objectID => objectID.to_s }
        req[:attributesToRetrieve] = attributes_to_retrieve unless attributes_to_retrieve.nil?
        req
      end
      client.post(Protocol.objects_uri, { :requests => requests }.to_json, :read, request_options)['results']
    end
Get a list of objects from this index

 @param objectIDs the array of unique identifier of the objects to retrieve
 @param attributes_to_retrieve (optional) if set, contains the list of attributes to retrieve as an array of strings of a string separated by ","
 @param request_options contains extra parameters to send with your query