Sha256: 8aa9c82f2a8e60585f439009905a2e5ab3333c33dba8c77ad581cefeeb485e22
Contents?: true
Size: 828 Bytes
Versions: 15
Compression:
Stored size: 828 Bytes
Contents
module Fog module Image class OpenStack class Real def list_public_images_detailed(attribute=nil, query=nil) if attribute path = "images/detail?#{attribute}=#{URI::encode(query)}" else path = 'images/detail' end request( :expects => [200, 204], :method => 'GET', :path => path ) end end # class Real class Mock def list_public_images_detailed(attribute=nil, query=nil) response = Excon::Response.new response.status = [200, 204][rand(1)] response.body = {'images' => self.data[:images].values} response end # def list_tenants end # class Mock end # class OpenStack end # module Identity end # module Fog
Version data entries
15 entries across 15 versions & 4 rubygems