Sha256: f34f0eb735345ae8ec3cbb498093ddf440e77624789739182ed5f0269f0e6aec
Contents?: true
Size: 611 Bytes
Versions: 19
Compression:
Stored size: 611 Bytes
Contents
module Fog module Volume class OpenStack class Real def list_snapshots(detailed=true) path = detailed ? 'snapshots/detail' : 'snapshots' request( :expects => 200, :method => 'GET', :path => path ) end end class Mock def list_snapshots(detailed=true) response = Excon::Response.new response.status = 200 response.body = { 'snapshots' => [get_snapshot_details.body["snapshot"]] } response end end end end end
Version data entries
19 entries across 19 versions & 4 rubygems