1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Enhance images details call by query

The images.details method needs to support the query parameter.
There is no other way how to pass the query into the images
collection.
This commit is contained in:
Ladislav Smola 2014-12-09 10:34:43 +01:00
parent 418fd8fdc1
commit 354607e210

View file

@ -11,8 +11,8 @@ module Fog
load(service.list_public_images_detailed.body['images'])
end
def details
load(service.list_public_images_detailed.body['images'])
def details(attribute=nil, query=nil)
load(service.list_public_images_detailed(attribute, query).body['images'])
end
def find_by_id(id)