lib/nsicloudooo/client.rb in nsicloudooo-0.4.0 vs lib/nsicloudooo/client.rb in nsicloudooo-0.4.1
- old
+ new
@@ -126,10 +126,10 @@
# @raise NSICloudooo::Errors::Client::AuthenticationError when invalids user and/or password are provided
# @raise NSICloudooo::Errors::Client::KeyNotFoundError when an invalid key is provided
#
def grains_keys_for(document_key)
request = prepare_request :GET, {:doc_key => document_key}.to_json
- execute_request(request)
+ execute_request(request).select {|chave| ['images', 'files'].include? chave}
end
# Return the key of the thumbnail of a document
#
#