Sha256: 68144ce4f57bd581fc53761230865db817c3f0dc09ab02e5960da7ede4d06013
Contents?: true
Size: 878 Bytes
Versions: 5
Compression:
Stored size: 878 Bytes
Contents
module Fog module Image class OpenStack class Real def list_public_images_detailed(attribute=nil, query=nil) path = 'images/detail' if attribute query = { attribute => URI::encode(query) } else query = {} end request( :expects => [200, 204], :method => 'GET', :path => path, :query => query ) 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_public_images_detailed end # class Mock end # class OpenStack end # module Image end # module Fog
Version data entries
5 entries across 5 versions & 1 rubygems