Sha256: 7f43adbd950a3730b54c7d1736aea8ff93eb0c55edc71041e9a0d9b97dc3562f
Contents?: true
Size: 616 Bytes
Versions: 85
Compression:
Stored size: 616 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
85 entries across 85 versions & 13 rubygems