Sha256: d1f3f09ec3cd682cb18d54359983fbd324dbe4601bc38f51b66c2400ef380b88
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 KB
Contents
module Fog module Compute class DigitalOceanV2 class Real def list_images request( :expects => [200], :method => 'GET', :path => '/v2/images' ) end end # noinspection RubyStringKeysInHashInspection class Mock def list_images response = Excon::Response.new response.status = 200 response.body = { 'images' => [ { 'id' => 7555620, 'name' => 'Nifty New Snapshot', 'distribution' => 'Ubuntu', 'slug' => nil, 'public' => false, 'regions' => %w(nyc2 nyc3), 'created_at' => '2014-11-04T22:23:02Z', 'type' => 'snapshot', 'min_disk_size' => 20, } ], 'links' => { 'pages' => { 'last' => 'https://api.digitalocean.com/v2/images?page=56&per_page=1', 'next' => 'https://api.digitalocean.com/v2/images?page=2&per_page=1' } }, 'meta' => { 'total' => 56 } } response end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems